]> git.baikalelectronics.ru Git - kernel.git/commit
clk: max77686: Combine Maxim max77686 and max77802 driver
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 17 Jun 2016 10:51:04 +0000 (16:21 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 15 Aug 2016 22:32:41 +0000 (15:32 -0700)
commit186f8a505f2949466bb1221ca096ba87b4803cd4
tree84207c740e559aeacba1db2e1d83cfa1c9efb35e
parent12d9ade2dc11f25b4a8a26912697e2edbf5800fd
clk: max77686: Combine Maxim max77686 and max77802 driver

The clock IP used on the Maxim PMICs max77686 and max77802 are
same. The configuration of clock register is also same except
the number of clocks.

Part of common code utilisation, there is 3 files for these chips
clock driver, one for common and two files for driver registration.

Combine both drivers into single file and move common code into
same common file reduces the 2 files and make max77686 and max77802
clock driver in single fine. This driver does not depends on the
parent driver structure. The regmap handle is acquired through
regmap APIs for the register access.

This combination of driver helps on adding clock driver for different
Maxim PMICs which has similar clock IP like MAX77620 and MAX20024.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
CC: Krzysztof Kozlowski <k.kozlowski@samsung.com>
CC: Javier Martinez Canillas <javier@dowhile0.org>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/clk-max-gen.c [deleted file]
drivers/clk/clk-max-gen.h [deleted file]
drivers/clk/clk-max77686.c
drivers/clk/clk-max77802.c [deleted file]