lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <1395060227-23378-4-git-send-email-cw00.choi@samsung.com>
Date:	Mon, 17 Mar 2014 21:43:46 +0900
From:	Chanwoo Choi <cw00.choi@...sung.com>
To:	dbaryshkov@...il.com, dwmw2@...radead.org
Cc:	myungjoo.ham@...sung.com, kyungmin.park@...sung.com,
	linux-kernel@...r.kernel.org, Chanwoo Choi <cw00.choi@...sung.com>
Subject: [RFC PATCH 3/4] Documentation: dt: charger-manager: Change the way to
 get fuel-gauge power-supply device

This patch use the phandle of fuel-gauge device instead of the name of fuel-gauge
device to get fuel-gauge device directly from dt.

Signed-off-by: Chanwoo Choi <cw00.choi@...sung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@...sung.com>
---
 .../devicetree/bindings/power_supply/charger-manager.txt          | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/power_supply/charger-manager.txt b/Documentation/devicetree/bindings/power_supply/charger-manager.txt
index 2b33750..ceebd66 100644
--- a/Documentation/devicetree/bindings/power_supply/charger-manager.txt
+++ b/Documentation/devicetree/bindings/power_supply/charger-manager.txt
@@ -6,7 +6,7 @@ Required properties :
  - <>-supply : for regulator consumer
  - cm-num-chargers : number of chargers
  - cm-chargers : name of chargers
- - cm-fuel-gauge : name of battery fuel gauge
+ - fuelgauge : phandle of fuelgauge power-supply device
  - subnode <regulator> :
 	- cm-regulator-name : name of charger regulator
 	- subnode <cable> :
@@ -30,6 +30,10 @@ Optional properties :
  - cm-dis/charging-max = limits of charging duration
 
 Example :
+	fuelgauge0: max17047@36 {
+		compatible = "maxim,max17047";
+	};
+
 	charger-manager@0 {
 		compatible = "charger-manager";
 		chg-reg-supply = <&charger_regulator>;
@@ -48,7 +52,7 @@ Example :
 		cm-num-chargers = <3>;
 		cm-chargers = "charger0", "charger1", "charger2";
 
-		cm-fuel-gauge = "fuelgauge0";
+		fuelgauge = <&fuelgauge0>;
 
 		cm-thermal-zone = "thermal_zone.1"
 		/* in deci centigrade */
-- 
1.8.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ