Re: [PATCH 2/2] staging: iio: adis16240: Group similar macros into enums

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

 



On 05/03/17 16:26, Narcisa Ana Maria Vasile wrote:
> Group the scan indexes into an enum.
> 
> Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@xxxxxxxxx>
Applied.

Busy week / weekend so sorry for delay on these!

Jonathan
> ---
>  drivers/staging/iio/accel/adis16240.c | 14 ++++++++------
>  1 file changed, 8 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/staging/iio/accel/adis16240.c b/drivers/staging/iio/accel/adis16240.c
> index 9690e46..4d8ee37 100644
> --- a/drivers/staging/iio/accel/adis16240.c
> +++ b/drivers/staging/iio/accel/adis16240.c
> @@ -192,12 +192,14 @@
>   * filling. This may change!
>   */
>  
> -#define ADIS16240_SCAN_ACC_X	0
> -#define ADIS16240_SCAN_ACC_Y	1
> -#define ADIS16240_SCAN_ACC_Z	2
> -#define ADIS16240_SCAN_SUPPLY	3
> -#define ADIS16240_SCAN_AUX_ADC	4
> -#define ADIS16240_SCAN_TEMP	5
> +enum adis16240_scan {
> +	ADIS16240_SCAN_ACC_X,
> +	ADIS16240_SCAN_ACC_Y,
> +	ADIS16240_SCAN_ACC_Z,
> +	ADIS16240_SCAN_SUPPLY,
> +	ADIS16240_SCAN_AUX_ADC,
> +	ADIS16240_SCAN_TEMP,
> +};
>  
>  static ssize_t adis16240_spi_read_signed(struct device *dev,
>  					 struct device_attribute *attr,
> 

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