* [PATCH 1/1] iio: Change GAIN macros to SCALE.
@ 2010-09-05 22:05 achew
2010-09-05 22:33 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: achew @ 2010-09-05 22:05 UTC (permalink / raw)
To: linux-iio; +Cc: jic23, Andrew Chew
From: Andrew Chew <achew@nvidia.com>
Per email exchange with Jonathan Cameron, GAIN should instead be SCALE, to
be consistent with documentation.
Signed-off-by: Andrew Chew <achew@nvidia.com>
---
drivers/staging/iio/magnetometer/magnet.h | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/iio/magnetometer/magnet.h b/drivers/staging/iio/magnetometer/magnet.h
index 6433830..1260eb7 100644
--- a/drivers/staging/iio/magnetometer/magnet.h
+++ b/drivers/staging/iio/magnetometer/magnet.h
@@ -12,14 +12,14 @@
#define IIO_DEV_ATTR_MAGN_Z_OFFSET(_mode, _show, _store, _addr) \
IIO_DEVICE_ATTR(magn_z_offset, _mode, _show, _store, _addr)
-#define IIO_DEV_ATTR_MAGN_X_GAIN(_mode, _show, _store, _addr) \
- IIO_DEVICE_ATTR(magn_x_gain, _mode, _show, _store, _addr)
+#define IIO_DEV_ATTR_MAGN_X_SCALE(_mode, _show, _store, _addr) \
+ IIO_DEVICE_ATTR(magn_x_scale, _mode, _show, _store, _addr)
-#define IIO_DEV_ATTR_MAGN_Y_GAIN(_mode, _show, _store, _addr) \
- IIO_DEVICE_ATTR(magn_y_gain, _mode, _show, _store, _addr)
+#define IIO_DEV_ATTR_MAGN_Y_SCALE(_mode, _show, _store, _addr) \
+ IIO_DEVICE_ATTR(magn_y_scale, _mode, _show, _store, _addr)
-#define IIO_DEV_ATTR_MAGN_Z_GAIN(_mode, _show, _store, _addr) \
- IIO_DEVICE_ATTR(magn_z_gain, _mode, _show, _store, _addr)
+#define IIO_DEV_ATTR_MAGN_Z_SCALE(_mode, _show, _store, _addr) \
+ IIO_DEVICE_ATTR(magn_z_scale, _mode, _show, _store, _addr)
#define IIO_DEV_ATTR_MAGN_X(_show, _addr) \
IIO_DEVICE_ATTR(magn_x_raw, S_IRUGO, _show, NULL, _addr)
--
1.7.0.4
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] iio: Change GAIN macros to SCALE.
2010-09-05 22:05 [PATCH 1/1] iio: Change GAIN macros to SCALE achew
@ 2010-09-05 22:33 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2010-09-05 22:33 UTC (permalink / raw)
To: achew; +Cc: linux-iio
On 09/05/10 23:05, achew@nvidia.com wrote:
> From: Andrew Chew <achew@nvidia.com>
>
> Per email exchange with Jonathan Cameron, GAIN should instead be SCALE, to
> be consistent with documentation.
>
> Signed-off-by: Andrew Chew <achew@nvidia.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Please send this one on to Greg KH with your driver
(when that is ready). That will make it apparent why
these are there at all!
Thanks,
Jonathan
> ---
> drivers/staging/iio/magnetometer/magnet.h | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/iio/magnetometer/magnet.h b/drivers/staging/iio/magnetometer/magnet.h
> index 6433830..1260eb7 100644
> --- a/drivers/staging/iio/magnetometer/magnet.h
> +++ b/drivers/staging/iio/magnetometer/magnet.h
> @@ -12,14 +12,14 @@
> #define IIO_DEV_ATTR_MAGN_Z_OFFSET(_mode, _show, _store, _addr) \
> IIO_DEVICE_ATTR(magn_z_offset, _mode, _show, _store, _addr)
>
> -#define IIO_DEV_ATTR_MAGN_X_GAIN(_mode, _show, _store, _addr) \
> - IIO_DEVICE_ATTR(magn_x_gain, _mode, _show, _store, _addr)
> +#define IIO_DEV_ATTR_MAGN_X_SCALE(_mode, _show, _store, _addr) \
> + IIO_DEVICE_ATTR(magn_x_scale, _mode, _show, _store, _addr)
>
> -#define IIO_DEV_ATTR_MAGN_Y_GAIN(_mode, _show, _store, _addr) \
> - IIO_DEVICE_ATTR(magn_y_gain, _mode, _show, _store, _addr)
> +#define IIO_DEV_ATTR_MAGN_Y_SCALE(_mode, _show, _store, _addr) \
> + IIO_DEVICE_ATTR(magn_y_scale, _mode, _show, _store, _addr)
>
> -#define IIO_DEV_ATTR_MAGN_Z_GAIN(_mode, _show, _store, _addr) \
> - IIO_DEVICE_ATTR(magn_z_gain, _mode, _show, _store, _addr)
> +#define IIO_DEV_ATTR_MAGN_Z_SCALE(_mode, _show, _store, _addr) \
> + IIO_DEVICE_ATTR(magn_z_scale, _mode, _show, _store, _addr)
>
> #define IIO_DEV_ATTR_MAGN_X(_show, _addr) \
> IIO_DEVICE_ATTR(magn_x_raw, S_IRUGO, _show, NULL, _addr)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-05 22:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-05 22:05 [PATCH 1/1] iio: Change GAIN macros to SCALE achew
2010-09-05 22:33 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox