summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-01-18 01:13:04 +0400
committerAlejandro Mery <amery@geeks.cl>2013-01-24 20:28:57 +0400
commit3bfbc55fbc64b998e983cf56f77c7e72f9f5c04e (patch)
treecc247893c63db19b67c540438c11efe1530358cc
parentcb0432d2bb6518f6565ff48fad1a65e52999b89d (diff)
downloadlinux-sunxi-3bfbc55fbc64b998e983cf56f77c7e72f9f5c04e.tar.xz
axp20-mfd.h: Re-format chip init register values
So that they can be read without needing horizontal scrolling. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--drivers/power/axp_power/axp20-mfd.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/power/axp_power/axp20-mfd.h b/drivers/power/axp_power/axp20-mfd.h
index cca090a2f2ea..3c4ad310cba3 100644
--- a/drivers/power/axp_power/axp20-mfd.h
+++ b/drivers/power/axp_power/axp20-mfd.h
@@ -26,11 +26,12 @@
static int __devinit axp20_init_chip(struct axp_mfd_chip *chip)
{
uint8_t chip_id;
- uint8_t v[19] = {0xd8,POWER20_INTEN2, 0xff,POWER20_INTEN3,0x03,
- POWER20_INTEN4, 0x01,POWER20_INTEN5, 0x00,
- POWER20_INTSTS1,0xff,POWER20_INTSTS2, 0xff,
- POWER20_INTSTS3,0xff,POWER20_INTSTS4, 0xff,
- POWER20_INTSTS5,0xff};
+ uint8_t v[19] = { /* POWER20_INTEN1 */ 0xd8,
+ POWER20_INTEN2, 0xff, POWER20_INTEN3, 0x03,
+ POWER20_INTEN4, 0x01, POWER20_INTEN5, 0x00,
+ POWER20_INTSTS1, 0xff, POWER20_INTSTS2, 0xff,
+ POWER20_INTSTS3, 0xff, POWER20_INTSTS4, 0xff,
+ POWER20_INTSTS5, 0xff };
int err;
/*read chip id*/
err = __axp_read(chip->client, POWER20_IC_TYPE, &chip_id);