]> git.hungrycats.org Git - linux/commit
pwm: Reorder symbols in core.c
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 25 Jan 2024 12:08:23 +0000 (13:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:18 +0000 (09:49 +0200)
commitb99fdbecdc0cce322df9146abc4729819210dd1a
treeeab0693a13e3bc36e75553c5f040d5ec87f0e800
parentc0a241e2f3b6ef112f943c88d104d3f1c0baea48
pwm: Reorder symbols in core.c

[ Upstream commit 62928315adfe32442b119cff42788891db89a575 ]

This moves the functions called by pwm consumers above the functions
called by pwm providers. When character device support is added later
this is hooked into the chip registration functions. As the needed
callbacks are a kind of consumer and make use of the consumer functions,
having this order is more natural and prevents having to add
declarations for static functions.

Also move the global variables for pwm tables to the respective
functions to have them properly grouped.

Link: https://lore.kernel.org/r/eed83de07bdfb69b5ceba0b9aed757ee612dea8f.1706182805.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