]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: s2mps11: Use existing defines from bindings for clock IDs
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 7 Aug 2018 16:17:13 +0000 (18:17 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 27 Aug 2018 21:18:36 +0000 (14:18 -0700)
The clock IDs must match between DeviceTree bindings and the driver.
There is already a header file used by DeviceTree sources so include it
in the driver to remove duplicated symbols.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-s2mps11.c

index d44e0eea31ec6de81e471469eee884f37a559fca..7c961bf2bfc774753825f8d782bd69037ea4d3a1 100644 (file)
 #include <linux/mfd/samsung/s5m8767.h>
 #include <linux/mfd/samsung/core.h>
 
-enum {
-       S2MPS11_CLK_AP = 0,
-       S2MPS11_CLK_CP,
-       S2MPS11_CLK_BT,
-       S2MPS11_CLKS_NUM,
-};
+#include <dt-bindings/clock/samsung,s2mps11.h>
 
 struct s2mps11_clk {
        struct sec_pmic_dev *iodev;