Commit 2b337430 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Robert Foss

drm/bridge: sn65dsi86: ti_sn65dsi86_read_u16() __maybe_unused

When built without CONFIG_PWM there are no references to
ti_sn65dsi86_read_u16(), avoid the W=1 build warning by marking the
function as __maybe_unused.

__maybe_unused is used insted of a #ifdef guard as it looks slighly
cleaner and it avoids issues if in the future other permutations of the
config options would use the function.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: cea86c5b ("drm/bridge: ti-sn65dsi86: Implement the pwm_chip")
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: default avatarRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211028163548.273736-1-bjorn.andersson@linaro.orgSigned-off-by: default avatarRobert Foss <robert.foss@linaro.org>
parent e73c317e
...@@ -215,8 +215,8 @@ static const struct regmap_config ti_sn65dsi86_regmap_config = { ...@@ -215,8 +215,8 @@ static const struct regmap_config ti_sn65dsi86_regmap_config = {
.cache_type = REGCACHE_NONE, .cache_type = REGCACHE_NONE,
}; };
static int ti_sn65dsi86_read_u16(struct ti_sn65dsi86 *pdata, static int __maybe_unused ti_sn65dsi86_read_u16(struct ti_sn65dsi86 *pdata,
unsigned int reg, u16 *val) unsigned int reg, u16 *val)
{ {
u8 buf[2]; u8 buf[2];
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment