Re: [PATCH 2/2] staging:iio: Use userspace types for iio_event_data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/21/11 11:59, Lars-Peter Clausen wrote:
> Since we want to export struct iio_event_data to userspace use the userspace
> integer types. Also add a include to linux/types.h.
> 
> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
Acked-by: Jonathan Cameron <jic23@xxxxxxxxx>

Will add to the series doing reorganization.

Thanks,
> ---
> Followup to "staging:iio: header reorganization". Based on linux-iio/master
> ---
>  drivers/staging/iio/events.h |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/events.h b/drivers/staging/iio/events.h
> index fbc198e..d1f946e 100644
> --- a/drivers/staging/iio/events.h
> +++ b/drivers/staging/iio/events.h
> @@ -12,6 +12,7 @@
>  #define _IIO_EVENTS_H_
>  
>  #include <linux/ioctl.h>
> +#include <linux/types.h>
>  
>  /**
>   * struct iio_event_data - The actual event being pushed to userspace
> @@ -20,8 +21,8 @@
>   *		the interrupt handler)
>   */
>  struct iio_event_data {
> -	u64	id;
> -	s64	timestamp;
> +	__u64	id;
> +	__s64	timestamp;
>  };
>  
>  #define IIO_GET_EVENT_FD_IOCTL _IOR('i', 0x90, int)

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux