pwm: sophgo-sg2042: Reorganize the code structure
authorLongbin Li <looong.bin@gmail.com>
Wed, 28 May 2025 10:11:37 +0000 (18:11 +0800)
committerUwe Kleine-König <ukleinek@kernel.org>
Mon, 7 Jul 2025 06:39:34 +0000 (08:39 +0200)
commit8c805dfafd9b9d82a4bdb2e804d85f3be0435aeb
tree00ed2e113fe31205a690558b32e20870729302fd
parent2b66b67530b828ce939c050d7d3366a80ef22d7a
pwm: sophgo-sg2042: Reorganize the code structure

As the driver logic can be used in both SG2042 and SG2044, it
will be better to reorganize the code structure.

Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
Tested-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Longbin Li <looong.bin@gmail.com>
Link: https://lore.kernel.org/r/20250528101139.28702-3-looong.bin@gmail.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-sophgo-sg2042.c