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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux