From: Stefan Wahren <stefan.wahren@i2se.com>
To: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Cc: lee.jones@linaro.org, linux-input@vger.kernel.org,
pmeerw@pmeerw.net, jic23@kernel.org, knaack.h@gmx.de,
lars@metafoo.de, linux-kernel@vger.kernel.org,
dmitry.torokhov@gmail.com, harald@ccbib.org,
fabio.estevam@freescale.com, linux-iio@vger.kernel.org,
marex@denx.de
Subject: Re: [PATCH v13 2/5] iio: adc: mxs-lradc: Add support for adc driver
Date: Mon, 30 Jan 2017 00:35:14 +0100 (CET) [thread overview]
Message-ID: <1356490394.76350.1485732914272@email.1und1.de> (raw)
In-Reply-To: <7ceea639e53d0517a3073229989f4f4ef0b17b84.1485711797.git.ksenija.stanojevic@gmail.com>
Hi Ksenija,
> Ksenija Stanojevic <ksenija.stanojevic@gmail.com> hat am 29. Januar 2017 um 19:04 geschrieben:
>
>
> Add support for sixteen-channel 12-bit resolution ADC and its functions,
> which include general-purpose ADC readings, battery voltage measurement,
> and die temperature measurement.
>
> Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
> Reviewed-by: Jonathan Cameron <jic23@kernel.org>
> Reviewed-by: Marek Vasut <marex@denx.de>
> ---
> ...
> diff --git a/drivers/iio/adc/mxs-lradc-adc.c b/drivers/iio/adc/mxs-lradc-adc.c
> new file mode 100644
> index 0000000..cc8d6af
> --- /dev/null
> +++ b/drivers/iio/adc/mxs-lradc-adc.c
> @@ -0,0 +1,843 @@
> ...
> +
> +#define SHOW_SCALE_AVAILABLE_ATTR(ch) \
> +static IIO_DEVICE_ATTR(in_voltage##ch##_scale_available, S_IRUGO, \
> + mxs_lradc_adc_show_scale_avail, NULL, ch)
> +
checkpatch complains here:
ERROR: Macros with complex values should be enclosed in parentheses
#498: FILE: drivers/iio/adc/mxs-lradc-adc.c:343:
+#define SHOW_SCALE_AVAILABLE_ATTR(ch) \
+static IIO_DEVICE_ATTR(in_voltage##ch##_scale_available, S_IRUGO, \
+ mxs_lradc_adc_show_scale_avail, NULL, ch)
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.
#499: FILE: drivers/iio/adc/mxs-lradc-adc.c:344:
+static IIO_DEVICE_ATTR(in_voltage##ch##_scale_available, S_IRUGO, \
total: 1 errors, 2 warnings, 869 lines checked
But the iio values on Olinuxino Maxi looks good.
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
next prev parent reply other threads:[~2017-01-29 23:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-29 18:04 [PATCH v13 0/5] mxs-lradc: Split driver into MFD Ksenija Stanojevic
2017-01-29 18:04 ` [PATCH v13 1/5] mfd: mxs-lradc: Add support for mxs-lradc MFD Ksenija Stanojevic
2017-01-29 23:15 ` Stefan Wahren
2017-01-29 18:04 ` [PATCH v13 2/5] iio: adc: mxs-lradc: Add support for adc driver Ksenija Stanojevic
2017-01-29 23:35 ` Stefan Wahren [this message]
2017-01-29 18:04 ` [PATCH v13 3/5] input: touchscreen: mxs-lradc: Add support for touchscreen Ksenija Stanojevic
2017-01-29 23:55 ` Stefan Wahren
2017-01-29 18:04 ` [PATCH v13 4/5] iio: adc: mxs-lradc: Remove driver Ksenija Stanojevic
2017-01-29 18:04 ` [PATCH v13 5/5] mfd: Move binding document Ksenija Stanojevic
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=1356490394.76350.1485732914272@email.1und1.de \
--to=stefan.wahren@i2se.com \
--cc=dmitry.torokhov@gmail.com \
--cc=fabio.estevam@freescale.com \
--cc=harald@ccbib.org \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=ksenija.stanojevic@gmail.com \
--cc=lars@metafoo.de \
--cc=lee.jones@linaro.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=pmeerw@pmeerw.net \
/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
all inboxes | Powered by JetHome®