From 3d153708943c176befe6712e37b580d4287eba6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Tue, 20 Dec 2022 15:25:18 +0100 Subject: hw/input/tsc2xxx: Constify set_transform()'s MouseTransformInfo arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pointed MouseTransformInfo structure is accessed read-only. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-id: 20221220142520.24094-2-philmd@linaro.org Signed-off-by: Peter Maydell --- hw/input/tsc2005.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/input/tsc2005.c') diff --git a/hw/input/tsc2005.c b/hw/input/tsc2005.c index 14698ce..555b677 100644 --- a/hw/input/tsc2005.c +++ b/hw/input/tsc2005.c @@ -523,7 +523,7 @@ void *tsc2005_init(qemu_irq pintdav) * from the touchscreen. Assuming 12-bit precision was used during * tslib calibration. */ -void tsc2005_set_transform(void *opaque, MouseTransformInfo *info) +void tsc2005_set_transform(void *opaque, const MouseTransformInfo *info) { TSC2005State *s = (TSC2005State *) opaque; -- cgit v1.1