]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: clps711x: Drop of_match_ptr() usage for .of_match_table
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 14 Feb 2025 16:34:42 +0000 (17:34 +0100)
committerUwe Kleine-König <ukleinek@kernel.org>
Sat, 15 Feb 2025 14:40:26 +0000 (15:40 +0100)
commitf2037a3ee9b4e3646882e6635ec097c08772a32f
treef729777411b9c2b9594a490d8d7b0360dc335c29
parentb2693edd0963dc06cb3021f249e3bd8cfc91fdac
pwm: clps711x: Drop of_match_ptr() usage for .of_match_table

The pwm-clps711x driver depends on ARCH_CLPS711X || COMPILE_TEST. With
the former being an ARCH_MULTI_V4T platform, there is always OF=y when
ARCH_CLPS711X=y, so in practise clps711x_pwm_dt_ids[] is always used.
(And in the case COMPILE_TEST=y + OF=n this only increases the driver
size a bit but still compiles.)

So drop the usage of of_match_ptr().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250214163442.192006-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-clps711x.c