mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 02:20:30 +01:00
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:
parent
fc6f2bb9d6
commit
6f5f83e7c3
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue