From: Jonathan Cameron <jic23@kernel.org>
To: Denis CIOCCA <denis.ciocca@st.com>
Cc: linux-iio@vger.kernel.org, lee.jones@linaro.org
Subject: Re: [PATCH] iio:magnetometer: Bugfix magnetometer default output registers
Date: Sat, 28 Sep 2013 12:04:38 +0100 [thread overview]
Message-ID: <5246B7C6.7090206@kernel.org> (raw)
In-Reply-To: <1380034294-22887-2-git-send-email-denis.ciocca@st.com>
On 09/24/13 15:51, Denis CIOCCA wrote:
> Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
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)
> };
>
>
next prev parent reply other threads:[~2013-09-28 10:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 14:51 bugfix magnetometer output registers Denis CIOCCA
2013-09-24 14:51 ` [PATCH] iio:magnetometer: Bugfix magnetometer default " Denis CIOCCA
2013-09-28 11:04 ` Jonathan Cameron [this message]
2013-09-28 12:30 ` Denis Ciocca
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5246B7C6.7090206@kernel.org \
--to=jic23@kernel.org \
--cc=denis.ciocca@st.com \
--cc=lee.jones@linaro.org \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.