From: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
Cc: knaack.h-Mmb7MZpHnFY@public.gmane.org,
lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org,
pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org,
linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
xxm-TNX95d0MmH7DzftRWevZcw@public.gmane.org,
kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org,
Heiko Stuebner
<heiko.stuebner-SN7IsUiht6C/RdPyistoZJqQE7yCjDx5@public.gmane.org>
Subject: Re: [PATCH v5 2/3] iio: adc: rockchip_saradc: better prefix for channel constant
Date: Sat, 25 Apr 2020 20:29:32 +0100 [thread overview]
Message-ID: <20200425202932.364ae11e@archlinux> (raw)
In-Reply-To: <20200419100207.58108-2-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
On Sun, 19 Apr 2020 12:02:06 +0200
Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> wrote:
> From: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/RdPyistoZJqQE7yCjDx5@public.gmane.org>
>
> As suggested give the current ADC_CHANNEL constant a distinct
> and consistent prefix.
>
> Suggested-by: Peter Meerwald-Stadler <pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org>
> Signed-off-by: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/RdPyistoZJqQE7yCjDx5@public.gmane.org>
Good change. I'll pick up once the rest of the series is ready.
Jonathan
> ---
> changes in v5:
> - new patch
>
> drivers/iio/adc/rockchip_saradc.c | 24 ++++++++++++------------
> 1 file changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/iio/adc/rockchip_saradc.c b/drivers/iio/adc/rockchip_saradc.c
> index 270eb7e83823..29d7f6e4057e 100644
> --- a/drivers/iio/adc/rockchip_saradc.c
> +++ b/drivers/iio/adc/rockchip_saradc.c
> @@ -118,7 +118,7 @@ static const struct iio_info rockchip_saradc_iio_info = {
> .read_raw = rockchip_saradc_read_raw,
> };
>
> -#define ADC_CHANNEL(_index, _id) { \
> +#define SARADC_CHANNEL(_index, _id) { \
> .type = IIO_VOLTAGE, \
> .indexed = 1, \
> .channel = _index, \
> @@ -128,9 +128,9 @@ static const struct iio_info rockchip_saradc_iio_info = {
> }
>
> static const struct iio_chan_spec rockchip_saradc_iio_channels[] = {
> - ADC_CHANNEL(0, "adc0"),
> - ADC_CHANNEL(1, "adc1"),
> - ADC_CHANNEL(2, "adc2"),
> + SARADC_CHANNEL(0, "adc0"),
> + SARADC_CHANNEL(1, "adc1"),
> + SARADC_CHANNEL(2, "adc2"),
> };
>
> static const struct rockchip_saradc_data saradc_data = {
> @@ -141,8 +141,8 @@ static const struct rockchip_saradc_data saradc_data = {
> };
>
> static const struct iio_chan_spec rockchip_rk3066_tsadc_iio_channels[] = {
> - ADC_CHANNEL(0, "adc0"),
> - ADC_CHANNEL(1, "adc1"),
> + SARADC_CHANNEL(0, "adc0"),
> + SARADC_CHANNEL(1, "adc1"),
> };
>
> static const struct rockchip_saradc_data rk3066_tsadc_data = {
> @@ -153,12 +153,12 @@ static const struct rockchip_saradc_data rk3066_tsadc_data = {
> };
>
> static const struct iio_chan_spec rockchip_rk3399_saradc_iio_channels[] = {
> - ADC_CHANNEL(0, "adc0"),
> - ADC_CHANNEL(1, "adc1"),
> - ADC_CHANNEL(2, "adc2"),
> - ADC_CHANNEL(3, "adc3"),
> - ADC_CHANNEL(4, "adc4"),
> - ADC_CHANNEL(5, "adc5"),
> + SARADC_CHANNEL(0, "adc0"),
> + SARADC_CHANNEL(1, "adc1"),
> + SARADC_CHANNEL(2, "adc2"),
> + SARADC_CHANNEL(3, "adc3"),
> + SARADC_CHANNEL(4, "adc4"),
> + SARADC_CHANNEL(5, "adc5"),
> };
>
> static const struct rockchip_saradc_data rk3399_saradc_data = {
next prev parent reply other threads:[~2020-04-25 19:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-19 10:02 [PATCH v5 1/3] iio: adc: rockchip_saradc: move all of probe to devm-functions Heiko Stuebner
2020-04-19 10:02 ` [PATCH v5 2/3] iio: adc: rockchip_saradc: better prefix for channel constant Heiko Stuebner
[not found] ` <20200419100207.58108-2-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2020-04-25 19:29 ` Jonathan Cameron [this message]
2020-04-19 10:02 ` [PATCH v5 3/3] iio: adc: rockchip_saradc: Add support iio buffers Heiko Stuebner
[not found] ` <20200419100207.58108-3-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2020-04-25 19:32 ` Jonathan Cameron
[not found] ` <20200419100207.58108-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2020-04-25 19:28 ` [PATCH v5 1/3] iio: adc: rockchip_saradc: move all of probe to devm-functions Jonathan Cameron
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=20200425202932.364ae11e@archlinux \
--to=jic23-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
--cc=heiko.stuebner-SN7IsUiht6C/RdPyistoZJqQE7yCjDx5@public.gmane.org \
--cc=kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org \
--cc=knaack.h-Mmb7MZpHnFY@public.gmane.org \
--cc=lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org \
--cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org \
--cc=xxm-TNX95d0MmH7DzftRWevZcw@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox