Skip to content

Commit cfca8bb

Browse files
M-VaittinenLee Jones
authored andcommitted
mfd: bd70528: Staticize bit value definitions
Make bit definitions static to reduce the scope. Signed-off-by: Matti Vaittinen <[email protected]> Signed-off-by: Lee Jones <[email protected]>
1 parent 6b5c350 commit cfca8bb

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

drivers/mfd/rohm-bd70528.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,14 @@ static struct regmap_config bd70528_regmap = {
105105
* register.
106106
*/
107107

108-
/* bit [0] - Shutdown register */
109-
unsigned int bit0_offsets[] = {0}; /* Shutdown register */
110-
unsigned int bit1_offsets[] = {1}; /* Power failure register */
111-
unsigned int bit2_offsets[] = {2}; /* VR FAULT register */
112-
unsigned int bit3_offsets[] = {3}; /* PMU register interrupts */
113-
unsigned int bit4_offsets[] = {4, 5}; /* Charger 1 and Charger 2 registers */
114-
unsigned int bit5_offsets[] = {6}; /* RTC register */
115-
unsigned int bit6_offsets[] = {7}; /* GPIO register */
116-
unsigned int bit7_offsets[] = {8}; /* Invalid operation register */
108+
static unsigned int bit0_offsets[] = {0}; /* Shutdown */
109+
static unsigned int bit1_offsets[] = {1}; /* Power failure */
110+
static unsigned int bit2_offsets[] = {2}; /* VR FAULT */
111+
static unsigned int bit3_offsets[] = {3}; /* PMU interrupts */
112+
static unsigned int bit4_offsets[] = {4, 5}; /* Charger 1 and Charger 2 */
113+
static unsigned int bit5_offsets[] = {6}; /* RTC */
114+
static unsigned int bit6_offsets[] = {7}; /* GPIO */
115+
static unsigned int bit7_offsets[] = {8}; /* Invalid operation */
117116

118117
static struct regmap_irq_sub_irq_map bd70528_sub_irq_offsets[] = {
119118
REGMAP_IRQ_MAIN_REG_OFFSET(bit0_offsets),

0 commit comments

Comments
 (0)