]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pwm: Reorder symbols in core.c
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 20 Sep 2024 08:58:03 +0000 (10:58 +0200)
committerUwe Kleine-König <ukleinek@kernel.org>
Sat, 28 Sep 2024 13:13:56 +0000 (15:13 +0200)
commit65406de2b0d059d44472ad6f3f88a9b4a9894833
treedd570b37081b64440cb671b137137d37c5e9f0ef
parentdeaba9cff8092cbb2bef4dc79a6ce296017904b1
pwm: Reorder symbols in core.c

This moves pwm_get() and friends above the functions handling
registration of pwmchips. The motivation is that character device
support needs pwm_get() and pwm_put() and so ideally is defined below
these and when a pwmchip is registered this registers the character
device. So the natural order is

pwm_get() and friend
pwm character device symbols
pwm_chip functions

. The advantage of having these in their natural order is that static
functions don't need to be forward declared.

Note that the diff that git produces for this change some functions are
moved down instead. This is technically equivalent, but not how this
change was created.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/193b3d933294da34e020650bff93b778de46b1c5.1726819463.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/core.c