diff options
author | Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> | 2019-11-08 10:15:51 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-11-11 11:25:15 +0000 |
commit | cfca8bb24e0c7e7241e8ef8af27881dd12b4543e (patch) | |
tree | 50dca972069206728239b8c9db31a38bb9810749 /drivers/mfd | |
parent | 6b5c350648b857047b47acf74a57087ad27d6183 (diff) | |
download | linux-cfca8bb24e0c7e7241e8ef8af27881dd12b4543e.tar.gz linux-cfca8bb24e0c7e7241e8ef8af27881dd12b4543e.tar.bz2 linux-cfca8bb24e0c7e7241e8ef8af27881dd12b4543e.zip |
mfd: bd70528: Staticize bit value definitions
Make bit definitions static to reduce the scope.
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/rohm-bd70528.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/mfd/rohm-bd70528.c b/drivers/mfd/rohm-bd70528.c index 55599d5c5c86..ef6786fd3b00 100644 --- a/drivers/mfd/rohm-bd70528.c +++ b/drivers/mfd/rohm-bd70528.c @@ -105,15 +105,14 @@ static struct regmap_config bd70528_regmap = { * register. */ -/* bit [0] - Shutdown register */ -unsigned int bit0_offsets[] = {0}; /* Shutdown register */ -unsigned int bit1_offsets[] = {1}; /* Power failure register */ -unsigned int bit2_offsets[] = {2}; /* VR FAULT register */ -unsigned int bit3_offsets[] = {3}; /* PMU register interrupts */ -unsigned int bit4_offsets[] = {4, 5}; /* Charger 1 and Charger 2 registers */ -unsigned int bit5_offsets[] = {6}; /* RTC register */ -unsigned int bit6_offsets[] = {7}; /* GPIO register */ -unsigned int bit7_offsets[] = {8}; /* Invalid operation register */ +static unsigned int bit0_offsets[] = {0}; /* Shutdown */ +static unsigned int bit1_offsets[] = {1}; /* Power failure */ +static unsigned int bit2_offsets[] = {2}; /* VR FAULT */ +static unsigned int bit3_offsets[] = {3}; /* PMU interrupts */ +static unsigned int bit4_offsets[] = {4, 5}; /* Charger 1 and Charger 2 */ +static unsigned int bit5_offsets[] = {6}; /* RTC */ +static unsigned int bit6_offsets[] = {7}; /* GPIO */ +static unsigned int bit7_offsets[] = {8}; /* Invalid operation */ static struct regmap_irq_sub_irq_map bd70528_sub_irq_offsets[] = { REGMAP_IRQ_MAIN_REG_OFFSET(bit0_offsets), |