Re: [PATCH] drm/bridge: sn65dsi86: ti_sn65dsi86_read_u16() __maybe_unused

2021-10-28 Thread Robert Foss
Hey Bjorn, Thanks for fixing this quickly. On Thu, 28 Oct 2021 at 18:33, Bjorn Andersson wrote: > > 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

[PATCH] drm/bridge: sn65dsi86: ti_sn65dsi86_read_u16() __maybe_unused

2021-10-28 Thread Bjorn Andersson
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