From: Peter Hutterer Date: Tue, 26 Aug 2014 02:57:41 +0000 (+1000) Subject: evdev: constify evdev_device_calibrate X-Git-Tag: 0.6.0~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f5f83e7c3d43fa3c71aefccde4d389e18895e2a;p=platform%2Fupstream%2Flibinput.git evdev: constify evdev_device_calibrate Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede --- diff --git a/src/evdev.c b/src/evdev.c index b09bb989..9c53e327 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -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); diff --git a/src/evdev.h b/src/evdev.h index f1ccdc29..6aa98f54 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -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,