]> git.hungrycats.org Git - linux/commit
pwm: Let the of_xlate callbacks accept references without period
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 9 Jan 2024 21:34:33 +0000 (22:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:18 +0000 (09:49 +0200)
commitf1cf38947558e07b1c96750174fd6845bd095dc4
tree8bae47d83fcbeced1105b033241e175b5e1d90ee
parent3dcb2582ac5aa6cfd9c06cc809c2a104a9f9e9ce
pwm: Let the of_xlate callbacks accept references without period

[ Upstream commit 40ade0c2e7940becad70a0643ba90488b905b468 ]

With this extension of_pwm_xlate_with_flags() is suitable to replace the
custom xlate function of the pwm-clps711x driver.

While touching these very similar functions align their implementations.

Link: https://lore.kernel.org/r/127622315d07d9d419ae8e6373c7e5be7fab7a62.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/pwm/core.c