]> git.hungrycats.org Git - linux/commit
pwm: Drop useless member .of_pwm_n_cells of struct pwm_chip
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 9 Jan 2024 21:34:32 +0000 (22:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:18 +0000 (09:49 +0200)
commit3dcb2582ac5aa6cfd9c06cc809c2a104a9f9e9ce
tree01d89779cb7f60a17de8a5cac76946a6250cf41a
parentbeeed260b92af158592f5e8d2dab65dae45c6f70
pwm: Drop useless member .of_pwm_n_cells of struct pwm_chip

[ Upstream commit 4e77431cda4973f03d063c47f6ea313dfceebf16 ]

Apart from the two of_xlate implementations this member is write-only.
In the of_xlate functions of_pwm_xlate_with_flags() and
of_pwm_single_xlate() it's more sensible to check for args->args_count
because this is what is actually used in the device tree.

Acked-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/53d8c545aa8f79a920358be9e72e382b3981bdc4.1704835845.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Stable-dep-of: 3e551115aee0 ("pwm: meson: Add check for error from clk_round_rate()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/ti-sn65dsi86.c
drivers/pwm/core.c
drivers/pwm/pwm-clps711x.c
drivers/pwm/pwm-cros-ec.c
drivers/pwm/pwm-pxa.c
include/linux/pwm.h