diff options
-rw-r--r-- | drivers/leds/leds-pca955x.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/leds/leds-pca955x.c b/drivers/leds/leds-pca955x.c index 156649e1e1c4..e9cfde9fe4b1 100644 --- a/drivers/leds/leds-pca955x.c +++ b/drivers/leds/leds-pca955x.c @@ -147,6 +147,12 @@ static inline int pca955x_num_input_regs(int bits) return (bits + 7) / 8; } +/* 4 bits per LED selector register */ +static inline int pca955x_num_led_regs(int bits) +{ + return (bits + 3) / 4; +} + /* * Return an LED selector register value based on an existing one, with * the appropriate 2-bit state value set for the given LED number (0-3). |