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 b09bb98..9c53e32 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 f1ccdc2..6aa98f5 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,