gpio: mvebu: Use IS_REACHABLE instead of IS_ENABLED for CONFIG_PWM
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 20 Jan 2023 07:53:33 +0000 (08:53 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Jan 2023 14:55:31 +0000 (15:55 +0100)
commit3101b1e4ba3874a7dbcc4da6d788e1408a69a5d7
tree5ffd5ac1b2e412ce9f2425f50ec610db251e4c66
parentfd648e1010b1c6f248ae5ed089808f031fedcfba
gpio: mvebu: Use IS_REACHABLE instead of IS_ENABLED for CONFIG_PWM

To check if a certain function (here e.g. pwmchip_add()) can be called
IS_REACHABLE is the better check. The relevant difference to IS_ENABLED
is that IS_REACHABLE evaluates to 0 if the current code is builtin but the
checked symbol is =m and so must not be used.

Today there is no practical impact as CONFIG_PWM is a bool.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-mvebu.c