[PATCH libinput 04/11] evdev: constify evdev_device_calibrate

Hans de Goede hdegoede at redhat.com
Thu Aug 28 06:00:46 PDT 2014


Hi,

On 08/27/2014 06:31 AM, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Looks good:

Reviewed-by: Hans de Goede <hdegoede at redhat.com>

Regards,

Hans


> ---
>  src/evdev.c | 3 ++-
>  src/evdev.h | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/src/evdev.c b/src/evdev.c
> index b09bb98..9c53e32 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 f1ccdc2..6aa98f5 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,
> 


More information about the wayland-devel mailing list