Skip to content
Commit 0e69c906 authored by Bastien Curutchet's avatar Bastien Curutchet Committed by Lee Jones
Browse files

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: default avatarBastien Curutchet <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20240617143910.154546-2-bastien.curutchet@bootlin.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent a031c814
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment