summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mfd/mc13xxx.c2
-rw-r--r--include/mfd/mc13xxx.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mfd/mc13xxx.c b/drivers/mfd/mc13xxx.c
index 56345ced1c..cffb5a9fa8 100644
--- a/drivers/mfd/mc13xxx.c
+++ b/drivers/mfd/mc13xxx.c
@@ -237,7 +237,7 @@ static int mc13xxx_query_revision(struct mc13xxx *mc13xxx)
char *chipname, *revstr;
int rev, i;
- mc13xxx_reg_read(mc13xxx, MC13892_REG_IDENTIFICATION, &rev_id);
+ mc13xxx_reg_read(mc13xxx, MC13XXX_REG_IDENTIFICATION, &rev_id);
/* Determine chip type by decode ICID bits */
switch ((rev_id >> 6) & 0x7) {
diff --git a/include/mfd/mc13xxx.h b/include/mfd/mc13xxx.h
index 0a76d356ad..5dfaf4a998 100644
--- a/include/mfd/mc13xxx.h
+++ b/include/mfd/mc13xxx.h
@@ -12,6 +12,8 @@
#ifndef __MFD_MC13XXX_H
#define __MFD_MC13XXX_H
+#define MC13XXX_REG_IDENTIFICATION 0x07
+
#define MC13892_REG_INT_STATUS0 0x00
#define MC13892_REG_INT_MASK0 0x01
#define MC13892_REG_INT_SENSE0 0x02
@@ -19,7 +21,6 @@
#define MC13892_REG_INT_MASK1 0x04
#define MC13892_REG_INT_SENSE1 0x05
#define MC13892_REG_PU_MODE_S 0x06
-#define MC13892_REG_IDENTIFICATION 0x07
#define MC13892_REG_UNUSED0 0x08
#define MC13892_REG_ACC0 0x09
#define MC13892_REG_ACC1 0x0a