]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: pca9532: Use defines to select PWM instance
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Mon, 17 Jun 2024 14:39:07 +0000 (16:39 +0200)
committerLee Jones <lee@kernel.org>
Wed, 26 Jun 2024 16:04:35 +0000 (17:04 +0100)
commit0e69c9062b406d9381eff8b6f585ce2a92c442f0
treef569768bc77d34460ea85a3789a8251a64cd7458
parenta031c814976012c7ab50a41165f3fdca524341a8
leds: pca9532: Use defines to select PWM instance

Two tables are used to configure the PWM and PSC registers of the two
PWM available in the pca9532. Magic numbers are used to access this table
instead of defines.

Add defines PCA9532_PWM_ID_0 and PCA9532_PWM_ID_1 and use them in place of
these magic numbers.

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20240617143910.154546-2-bastien.curutchet@bootlin.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-pca9532.c