diff options
author | Johan Hovold <johan@kernel.org> | 2020-06-30 10:39:48 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-07-01 15:54:29 +0200 |
commit | 4d3ec936f80dbb2174c8c1f426eb86c032e9f14e (patch) | |
tree | 4517c717ae8639303930fcd00d5d0de0fa4dea75 /lib/kasprintf.c | |
parent | dt-bindings: mfd: st,stmfx: Remove extra additionalProperties (diff) | |
download | linux-4d3ec936f80dbb2174c8c1f426eb86c032e9f14e.tar.xz linux-4d3ec936f80dbb2174c8c1f426eb86c032e9f14e.zip |
mfd: lm3533: Expand control-bank accessors
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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'lib/kasprintf.c')
0 files changed, 0 insertions, 0 deletions