evdev: constify evdev_device_calibrate
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 26 Aug 2014 02:57:41 +0000 (12:57 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 27 Aug 2014 02:33:11 +0000 (12:33 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev.c
src/evdev.h

index b09bb989f4187a0ebaa48e38093f1417cb1c9cc9..9c53e327dd99b2e6c84ea0c60dad0b3200af4a5f 100644 (file)
@@ -976,7 +976,8 @@ evdev_device_get_id_vendor(struct evdev_device *device)
 }
 
 void
-evdev_device_calibrate(struct evdev_device *device, float calibration[6])
+evdev_device_calibrate(struct evdev_device *device,
+                      const float calibration[6])
 {
        device->abs.apply_calibration = 1;
        memcpy(device->abs.calibration, calibration, sizeof device->abs.calibration);
index f1ccdc292540b2d9b6897e2f9e3e0ad261501838..6aa98f5444a40d84af641ee9706646a1dff34fd3 100644 (file)
@@ -159,7 +159,8 @@ unsigned int
 evdev_device_get_id_vendor(struct evdev_device *device);
 
 void
-evdev_device_calibrate(struct evdev_device *device, float calibration[6]);
+evdev_device_calibrate(struct evdev_device *device,
+                      const float calibration[6]);
 
 int
 evdev_device_has_capability(struct evdev_device *device,