]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pwm: axi-pwmgen: Rename 0x10 register
authorDavid Lechner <dlechner@baylibre.com>
Wed, 9 Oct 2024 21:11:49 +0000 (16:11 -0500)
committerUwe Kleine-König <ukleinek@kernel.org>
Fri, 25 Oct 2024 09:42:36 +0000 (11:42 +0200)
commit2e82d58c7ba8f7b4bb273ca5859b682b65654f9e
treefc19b4d8c9f3a33aa17825e898d692db6e972dce
parent3c25a3d0769d13c448780b3db91104460502682d
pwm: axi-pwmgen: Rename 0x10 register

Rename the 0x10 register from REG_CONFIG to REG_RSTN. Also rename the
associated bit macros accordingly.

While touching this, move the bit macros close to the register address
macro for better organization.

According to [1], the name of the 0x10 register is REG_RSTN, and there
is a different register named REG_CONFIG (0x18). So we should not be
using REG_CONFIG for the 0x10 register to avoid confusion.

[1]: http://analogdevicesinc.github.io/hdl/library/axi_pwm_gen/index.html

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20241009-pwm-axi-pwmgen-enable-force_align-v1-1-5d6ad8cbf5b4@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-axi-pwmgen.c