mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 03:08:34 +07:00
pwm: pca9685: Use BIT() macro instead of shift
Signed-off-by: David Jander <david@protonic.nl> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
316b676bd4
commit
e1057a8df1
@ -57,10 +57,10 @@
|
||||
#define PCA9685_NUMREGS 0xFF
|
||||
#define PCA9685_MAXCHAN 0x10
|
||||
|
||||
#define LED_FULL (1 << 4)
|
||||
#define MODE1_SLEEP (1 << 4)
|
||||
#define MODE2_INVRT (1 << 4)
|
||||
#define MODE2_OUTDRV (1 << 2)
|
||||
#define LED_FULL BIT(4)
|
||||
#define MODE1_SLEEP BIT(4)
|
||||
#define MODE2_INVRT BIT(4)
|
||||
#define MODE2_OUTDRV BIT(2)
|
||||
|
||||
#define LED_N_ON_H(N) (PCA9685_LEDX_ON_H + (4 * (N)))
|
||||
#define LED_N_ON_L(N) (PCA9685_LEDX_ON_L + (4 * (N)))
|
||||
|
Loading…
Reference in New Issue
Block a user