Commit e1057a8d authored by David Jander's avatar David Jander Committed by Thierry Reding

pwm: pca9685: Use BIT() macro instead of shift

Signed-off-by: default avatarDavid Jander <david@protonic.nl>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 316b676b
......@@ -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)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment