mfd: sec-core: Add maximum RTC register for regmap config
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 28 Feb 2014 10:41:41 +0000 (11:41 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 18 Mar 2014 10:48:43 +0000 (10:48 +0000)
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>
drivers/mfd/sec-core.c
include/linux/mfd/samsung/rtc.h

index 714e2135210ec2ddc989efcd44f3e800b80f5bcf..306b3a282c29347217dfb56967184e84f874b0a5 100644 (file)
@@ -141,6 +141,8 @@ static const struct regmap_config s5m8767_regmap_config = {
 static const struct regmap_config sec_rtc_regmap_config = {
        .reg_bits = 8,
        .val_bits = 8,
+
+       .max_register = SEC_RTC_REG_MAX,
 };
 
 #ifdef CONFIG_OF
index 94b7cd6d889185f9df10b611099bf06038365b83..4627f59ebd8435c5d4a1c12c69689b7d744af57c 100644 (file)
@@ -43,6 +43,8 @@ enum sec_rtc_reg {
        SEC_RTC_STATUS,
        SEC_WTSR_SMPL_CNTL,
        SEC_RTC_UDR_CON,
+
+       SEC_RTC_REG_MAX,
 };
 
 #define RTC_I2C_ADDR           (0x0C >> 1)