aboutsummaryrefslogtreecommitdiff
path: root/hw/input/tsc2005.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2022-12-20 15:25:18 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-01-05 14:11:15 +0000
commit3d153708943c176befe6712e37b580d4287eba6f (patch)
treef871aad875fe9e1dd1e1acbeacce37fb8a5ba71c /hw/input/tsc2005.c
parentedd2dc4e3a15e9aa6a759fc8478999215ff1be53 (diff)
downloadqemu-3d153708943c176befe6712e37b580d4287eba6f.zip
qemu-3d153708943c176befe6712e37b580d4287eba6f.tar.gz
qemu-3d153708943c176befe6712e37b580d4287eba6f.tar.bz2
hw/input/tsc2xxx: Constify set_transform()'s MouseTransformInfo arg
The pointed MouseTransformInfo structure is accessed read-only. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20221220142520.24094-2-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/input/tsc2005.c')
-rw-r--r--hw/input/tsc2005.c2
1 files changed, 1 insertions, 1 deletions
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;