mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 07:23:14 +00:00
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>
This commit is contained in:
parent
6b5c350648
commit
cfca8bb24e
@ -105,15 +105,14 @@ static struct regmap_config bd70528_regmap = {
|
|||||||
* register.
|
* register.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* bit [0] - Shutdown register */
|
static unsigned int bit0_offsets[] = {0}; /* Shutdown */
|
||||||
unsigned int bit0_offsets[] = {0}; /* Shutdown register */
|
static unsigned int bit1_offsets[] = {1}; /* Power failure */
|
||||||
unsigned int bit1_offsets[] = {1}; /* Power failure register */
|
static unsigned int bit2_offsets[] = {2}; /* VR FAULT */
|
||||||
unsigned int bit2_offsets[] = {2}; /* VR FAULT register */
|
static unsigned int bit3_offsets[] = {3}; /* PMU interrupts */
|
||||||
unsigned int bit3_offsets[] = {3}; /* PMU register interrupts */
|
static unsigned int bit4_offsets[] = {4, 5}; /* Charger 1 and Charger 2 */
|
||||||
unsigned int bit4_offsets[] = {4, 5}; /* Charger 1 and Charger 2 registers */
|
static unsigned int bit5_offsets[] = {6}; /* RTC */
|
||||||
unsigned int bit5_offsets[] = {6}; /* RTC register */
|
static unsigned int bit6_offsets[] = {7}; /* GPIO */
|
||||||
unsigned int bit6_offsets[] = {7}; /* GPIO register */
|
static unsigned int bit7_offsets[] = {8}; /* Invalid operation */
|
||||||
unsigned int bit7_offsets[] = {8}; /* Invalid operation register */
|
|
||||||
|
|
||||||
static struct regmap_irq_sub_irq_map bd70528_sub_irq_offsets[] = {
|
static struct regmap_irq_sub_irq_map bd70528_sub_irq_offsets[] = {
|
||||||
REGMAP_IRQ_MAIN_REG_OFFSET(bit0_offsets),
|
REGMAP_IRQ_MAIN_REG_OFFSET(bit0_offsets),
|
||||||
|
Loading…
Reference in New Issue
Block a user