summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/pv88090-regulator.h
diff options
context:
space:
mode:
authorEric Jeong <eric.jeong.opensource@diasemi.com>2017-08-30 17:54:27 +0900
committerMark Brown <broonie@kernel.org>2017-08-30 16:12:17 +0100
commit8986a11978373400a7e880b413c43ca229d7a8a8 (patch)
tree41fbddd7f862684af7efb46dedc2dd313a4cdc89 /drivers/regulator/pv88090-regulator.h
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff)
downloadlinux-8986a11978373400a7e880b413c43ca229d7a8a8.tar.bz2
regulator: pv88090: Exception handling for out of bounds
This is a patch for exception handlding that the index of array is out of bounds. And the definitions have been updated to use proper device name. Signed-off-by: Eric Jeong <eric.jeong.opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/pv88090-regulator.h')
-rw-r--r--drivers/regulator/pv88090-regulator.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/pv88090-regulator.h b/drivers/regulator/pv88090-regulator.h
index d7aca8d8266d..62d9029277f4 100644
--- a/drivers/regulator/pv88090-regulator.h
+++ b/drivers/regulator/pv88090-regulator.h
@@ -89,10 +89,10 @@
#define PV88090_BUCK_VDAC_RANGE_2 0x01
/* PV88090_REG_BUCK_FOLD_RANGE (addr=0x61) */
-#define PV88080_BUCK_VRANGE_GAIN_SHIFT 3
-#define PV88080_BUCK_VRANGE_GAIN_MASK 0x01
+#define PV88090_BUCK_VRANGE_GAIN_SHIFT 3
+#define PV88090_BUCK_VRANGE_GAIN_MASK 0x01
-#define PV88080_BUCK_VRANGE_GAIN_1 0x00
-#define PV88080_BUCK_VRANGE_GAIN_2 0x01
+#define PV88090_BUCK_VRANGE_GAIN_1 0x00
+#define PV88090_BUCK_VRANGE_GAIN_2 0x01
#endif /* __PV88090_REGISTERS_H__ */