]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: max77686: move initialisation of rtc regmap, irq chip locally
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 9 Feb 2016 17:26:34 +0000 (22:56 +0530)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:08:13 +0000 (17:08 +0100)
commitb150648b2f4b0f7c14721c31bf2dede38810e235
treeaa40f0026677573009c698a9dca92472174ced3c
parent25a067663918e312e8a7e62ee16579cff1b47e70
rtc: max77686: move initialisation of rtc regmap, irq chip locally

To make RTC block of MAX77686/MAX77802 as independent driver,
move the registration of i2c device, regmap for register access
and irq_chip for interrupt support inside the RTC driver.
Removed the same initialisation from MFD driver.

Having this change will allow to reuse this driver for different
PMIC/devices from Maxim Semiconductor if they kept same RTC IP on
different PMIC. Some of examples as PMIC MAX77620, MAX20024 where
same RTC IP used and hence driver for these chips will use this
driver only for RTC support.

Suggested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/mfd/max77686.c
drivers/rtc/rtc-max77686.c
include/linux/mfd/max77686-private.h