evdev: constify evdev_device_calibrate

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Peter Hutterer 2014-08-26 12:57:41 +10:00
parent fc6f2bb9d6
commit 6f5f83e7c3
2 changed files with 4 additions and 2 deletions

View 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);

View 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,