On Mon, Feb 17, 2025 at 6:55 PM Louis Chauvet <louis.chauvet@xxxxxxxxxxx> 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@xxxxxxxxxxxx> > > Reviewed-by: Louis Chauvet <louis.chauvet@xxxxxxxxxxx> Reviewed-by: Robert Foss <rfoss@xxxxxxxxxx>