[PATCH] drm/bridge: ti-sn65dsi86: Check for CONFIG_PWM using IS_REACHABLE()

Robert Foss rfoss at kernel.org
Tue Feb 18 08:09:54 UTC 2025


On Mon, Feb 17, 2025 at 6:55 PM Louis Chauvet <louis.chauvet at bootlin.com> wrote:
>
>
>
> Le 17/02/2025 à 18:49, Uwe Kleine-König a écrit :
> > Currently CONFIG_PWM is a bool but I intend to change it to tristate. If
> > CONFIG_PWM=m in the configuration, the cpp symbol CONFIG_PWM isn't
> > defined and so the PWM code paths in the ti-sn65dsi86 driver are not
> > used.
> >
> > The correct way to check for CONFIG_PWM is using IS_REACHABLE which does
> > the right thing for all cases
> > CONFIG_DRM_TI_SN65DSI86 ∈ { y, m } x CONFIG_PWM ∈ { y, m, n }.
> >
> > There is no change until CONFIG_PWM actually becomes tristate.
> >
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>
>
> Reviewed-by: Louis Chauvet <louis.chauvet at bootlin.com>

Reviewed-by: Robert Foss <rfoss at kernel.org>


More information about the dri-devel mailing list