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)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 15 Feb 2024 11:28:02 +0000 (12:28 +0100)
commit62928315adfe32442b119cff42788891db89a575
treee3019c48c729fc364d80c31e8131c74c06e0f00b
parentbdc585f987a0e18be9399abc609d564c83f74c2b
pwm: Reorder symbols in core.c

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>
drivers/pwm/core.c