Re: [PATCH] iio:magnetometer: Bugfix magnetometer default output registers

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

 



On 09/24/13 15:51, Denis CIOCCA wrote:
> Signed-off-by: Denis Ciocca <denis.ciocca@xxxxxx>
Applied to the togreg branch of iio.git

Does this want to go to stable as well?

Thanks,
> ---
>  drivers/iio/magnetometer/st_magn_core.c |   18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c
> index e8d2849..cab3bc7 100644
> --- a/drivers/iio/magnetometer/st_magn_core.c
> +++ b/drivers/iio/magnetometer/st_magn_core.c
> @@ -29,9 +29,9 @@
>  #define ST_MAGN_NUMBER_DATA_CHANNELS		3
>  
>  /* DEFAULT VALUE FOR SENSORS */
> -#define ST_MAGN_DEFAULT_OUT_X_L_ADDR		0X04
> -#define ST_MAGN_DEFAULT_OUT_Y_L_ADDR		0X08
> -#define ST_MAGN_DEFAULT_OUT_Z_L_ADDR		0X06
> +#define ST_MAGN_DEFAULT_OUT_X_H_ADDR		0X03
> +#define ST_MAGN_DEFAULT_OUT_Y_H_ADDR		0X07
> +#define ST_MAGN_DEFAULT_OUT_Z_H_ADDR		0X05
>  
>  /* FULLSCALE */
>  #define ST_MAGN_FS_AVL_1300MG			1300
> @@ -117,16 +117,16 @@
>  static const struct iio_chan_spec st_magn_16bit_channels[] = {
>  	ST_SENSORS_LSM_CHANNELS(IIO_MAGN,
>  			BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE),
> -			ST_SENSORS_SCAN_X, 1, IIO_MOD_X, 's', IIO_LE, 16, 16,
> -			ST_MAGN_DEFAULT_OUT_X_L_ADDR),
> +			ST_SENSORS_SCAN_X, 1, IIO_MOD_X, 's', IIO_BE, 16, 16,
> +			ST_MAGN_DEFAULT_OUT_X_H_ADDR),
>  	ST_SENSORS_LSM_CHANNELS(IIO_MAGN,
>  			BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE),
> -			ST_SENSORS_SCAN_Y, 1, IIO_MOD_Y, 's', IIO_LE, 16, 16,
> -			ST_MAGN_DEFAULT_OUT_Y_L_ADDR),
> +			ST_SENSORS_SCAN_Y, 1, IIO_MOD_Y, 's', IIO_BE, 16, 16,
> +			ST_MAGN_DEFAULT_OUT_Y_H_ADDR),
>  	ST_SENSORS_LSM_CHANNELS(IIO_MAGN,
>  			BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE),
> -			ST_SENSORS_SCAN_Z, 1, IIO_MOD_Z, 's', IIO_LE, 16, 16,
> -			ST_MAGN_DEFAULT_OUT_Z_L_ADDR),
> +			ST_SENSORS_SCAN_Z, 1, IIO_MOD_Z, 's', IIO_BE, 16, 16,
> +			ST_MAGN_DEFAULT_OUT_Z_H_ADDR),
>  	IIO_CHAN_SOFT_TIMESTAMP(3)
>  };
>  
> 
--
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