Skip to content

Commit

Permalink
mfd: sec-core: Add maximum RTC register for regmap config
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krzysztof Kozlowski authored and Lee Jones committed Mar 18, 2014
1 parent 0414855 commit b07e2b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/sec-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions include/linux/mfd/samsung/rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b07e2b7

Please sign in to comment.