From: Lee Jones <lee.jones@linaro.org>
To: Johan Hovold <johan@kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd: lm3533: expand control-bank accessors
Date: Wed, 1 Jul 2020 14:54:59 +0100 [thread overview]
Message-ID: <20200701135459.GH1179328@dell> (raw)
In-Reply-To: <20200630083948.6987-1-johan@kernel.org>
On Tue, 30 Jun 2020, Johan Hovold wrote:
> Expand the control-bank accessors that were implemented using macros.
> This allows the definitions of these exported functions to be found more
> easily and specifically avoids a W=1 compiler warning due to the
> redundant brightness sanity check:
>
> drivers/mfd/lm3533-ctrlbank.c: In function 'lm3533_ctrlbank_set_brightness':
> drivers/mfd/lm3533-ctrlbank.c:98:10: warning: comparison is always false due to limited range of data type [-Wtype-limits]
> 98 | if (val > LM3533_##_NAME##_MAX) \
> | ^
> drivers/mfd/lm3533-ctrlbank.c:125:1: note: in expansion of macro 'lm3533_ctrlbank_set'
> 125 | lm3533_ctrlbank_set(brightness, BRIGHTNESS);
> | ^~~~~~~~~~~~~~~~~~~
>
> Signed-off-by: Johan Hovold <johan@kernel.org>
> ---
> drivers/mfd/lm3533-ctrlbank.c | 94 +++++++++++++++++++++--------------
> 1 file changed, 56 insertions(+), 38 deletions(-)
That'll work. Thanks Johan.
Applied, thanks.
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
prev parent reply other threads:[~2020-07-01 13:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-30 8:39 [PATCH] mfd: lm3533: expand control-bank accessors Johan Hovold
2020-07-01 13:54 ` Lee Jones [this message]
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=20200701135459.GH1179328@dell \
--to=lee.jones@linaro.org \
--cc=johan@kernel.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox