diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-02-28 05:41:41 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-03-18 06:48:43 -0400 |
commit | b07e2b70b9a1ff9f59af66fd0085c1c52178f440 (patch) | |
tree | 625945dff667b749a593dc211116879eda914319 | |
parent | 0414855fdc4a40da05221fc6062cccbc0c30f169 (diff) |
mfd: sec-core: Add maximum RTC register for regmap config
Add maximum register to the regmap used by rtc-s5m driver.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/sec-core.c | 2 | ||||
-rw-r--r-- | include/linux/mfd/samsung/rtc.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 714e2135210e..306b3a282c29 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c | |||
@@ -141,6 +141,8 @@ static const struct regmap_config s5m8767_regmap_config = { | |||
141 | static const struct regmap_config sec_rtc_regmap_config = { | 141 | static const struct regmap_config sec_rtc_regmap_config = { |
142 | .reg_bits = 8, | 142 | .reg_bits = 8, |
143 | .val_bits = 8, | 143 | .val_bits = 8, |
144 | |||
145 | .max_register = SEC_RTC_REG_MAX, | ||
144 | }; | 146 | }; |
145 | 147 | ||
146 | #ifdef CONFIG_OF | 148 | #ifdef CONFIG_OF |
diff --git a/include/linux/mfd/samsung/rtc.h b/include/linux/mfd/samsung/rtc.h index 94b7cd6d8891..4627f59ebd84 100644 --- a/include/linux/mfd/samsung/rtc.h +++ b/include/linux/mfd/samsung/rtc.h | |||
@@ -43,6 +43,8 @@ enum sec_rtc_reg { | |||
43 | SEC_RTC_STATUS, | 43 | SEC_RTC_STATUS, |
44 | SEC_WTSR_SMPL_CNTL, | 44 | SEC_WTSR_SMPL_CNTL, |
45 | SEC_RTC_UDR_CON, | 45 | SEC_RTC_UDR_CON, |
46 | |||
47 | SEC_RTC_REG_MAX, | ||
46 | }; | 48 | }; |
47 | 49 | ||
48 | #define RTC_I2C_ADDR (0x0C >> 1) | 50 | #define RTC_I2C_ADDR (0x0C >> 1) |