Преглед на файлове

mfd: max77693: Add muic of_compatible in mfd_cell

This patch adds muic of_compatible in order to use the muic device
driver in device tree.

Signed-off-by: Maciej Purski <m.purski@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Maciej Purski преди 8 години
родител
ревизия
4589515af3
променени са 2 файла, в които са добавени 10 реда и са изтрити 1 реда
  1. 6 0
      Documentation/devicetree/bindings/mfd/max77693.txt
  2. 4 1
      drivers/mfd/max77693.c

+ 6 - 0
Documentation/devicetree/bindings/mfd/max77693.txt

@@ -127,6 +127,12 @@ Required properties for the LED child node:
 Optional properties for the LED child node:
 Optional properties for the LED child node:
 - label : see Documentation/devicetree/bindings/leds/common.txt
 - label : see Documentation/devicetree/bindings/leds/common.txt
 
 
+Optional nodes:
+- max77693-muic :
+	Node used only by extcon consumers.
+	Required properties:
+		- compatible : "maxim,max77693-muic"
+
 Example:
 Example:
 #include <dt-bindings/leds/common.h>
 #include <dt-bindings/leds/common.h>
 
 

+ 4 - 1
drivers/mfd/max77693.c

@@ -48,7 +48,10 @@ static const struct mfd_cell max77693_devs[] = {
 		.name = "max77693-charger",
 		.name = "max77693-charger",
 		.of_compatible = "maxim,max77693-charger",
 		.of_compatible = "maxim,max77693-charger",
 	},
 	},
-	{ .name = "max77693-muic", },
+	{
+		.name = "max77693-muic",
+		.of_compatible = "maxim,max77693-muic",
+	},
 	{
 	{
 		.name = "max77693-haptic",
 		.name = "max77693-haptic",
 		.of_compatible = "maxim,max77693-haptic",
 		.of_compatible = "maxim,max77693-haptic",