devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name
@ 2019-03-26 13:57 michael.hennerich
  2019-03-29 16:21 ` Rob Herring
  2019-04-05 14:37 ` Sebastian Reichel
  0 siblings, 2 replies; 6+ messages in thread
From: michael.hennerich @ 2019-03-26 13:57 UTC (permalink / raw)
  To: mike.looijmans, sre, robh+dt
  Cc: linux-pm, devicetree, robin.getz, Michael Hennerich

From: Michael Hennerich <michael.hennerich@analog.com>

There never was a device called LTC3651, it always was just LT3651.
This circumstance makes it pretty difficult to identify what this
driver is meant to control. This patch is a minimal invasive attempt
to fix this issue without affecting existing systems.


Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
---
 .../devicetree/bindings/power/supply/ltc3651-charger.txt         | 8 +++++---
 drivers/power/supply/Kconfig                                     | 6 +++---
 drivers/power/supply/ltc3651-charger.c                           | 9 +++------
 3 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/Documentation/devicetree/bindings/power/supply/ltc3651-charger.txt b/Documentation/devicetree/bindings/power/supply/ltc3651-charger.txt
index 71f2840..f012449 100644
--- a/Documentation/devicetree/bindings/power/supply/ltc3651-charger.txt
+++ b/Documentation/devicetree/bindings/power/supply/ltc3651-charger.txt
@@ -1,7 +1,9 @@
-ltc3651-charger
+Analog Devices LT3651 Charger Power Supply bindings: ltc3651-charger
 
 Required properties:
- - compatible: "lltc,ltc3651-charger"
+- compatible: Should contain one of the following:
+ * "lltc,ltc3651-charger",
+ * "lltc,lt3651-charger"
  - lltc,acpr-gpios: Connect to ACPR output. See remark below.
 
 Optional properties:
@@ -20,7 +22,7 @@ attributes to detect changes.
 Example:
 
 	charger: battery-charger {
-		compatible = "lltc,ltc3651-charger";
+		compatible = "lltc,lt3651-charger";
 		lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>;
 		lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>;
 		lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>;
diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig
index e901b9879..6816a86 100644
--- a/drivers/power/supply/Kconfig
+++ b/drivers/power/supply/Kconfig
@@ -476,11 +476,11 @@ config CHARGER_MANAGER
           with help of suspend_again support.
 
 config CHARGER_LTC3651
-	tristate "LTC3651 charger"
+	tristate "Analog Devices LT3651 charger"
 	depends on GPIOLIB
 	help
-	  Say Y to include support for the LTC3651 battery charger which reports
-	  its status via GPIO lines.
+	  Say Y to include support for the Analog Devices (Linear Technology)
+	  LT3651 battery charger which reports its status via GPIO lines.
 
 config CHARGER_MAX14577
 	tristate "Maxim MAX14577/77836 battery charger driver"
diff --git a/drivers/power/supply/ltc3651-charger.c b/drivers/power/supply/ltc3651-charger.c
index eea63ff..07ed537 100644
--- a/drivers/power/supply/ltc3651-charger.c
+++ b/drivers/power/supply/ltc3651-charger.c
@@ -1,11 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
+ *  Driver for Analog Devices (Linear Technology) LT3651 charger IC.
  *  Copyright (C) 2017, Topic Embedded Products
- *  Driver for LTC3651 charger IC.
- *
- *  This program is free software; you can redistribute it and/or modify it
- *  under  the terms of the GNU General  Public License as published by the
- *  Free Software Foundation;  either version 2 of the License, or (at your
- *  option) any later version.
  */
 
 #include <linux/device.h>
@@ -190,6 +186,7 @@ static int ltc3651_charger_probe(struct platform_device *pdev)
 
 static const struct of_device_id ltc3651_charger_match[] = {
 	{ .compatible = "lltc,ltc3651-charger" },
+	{ .compatible = "lltc,lt3651-charger" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, ltc3651_charger_match);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-04-08  8:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-26 13:57 [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name michael.hennerich
2019-03-29 16:21 ` Rob Herring
2019-04-05 14:37 ` Sebastian Reichel
2019-04-05 14:58   ` Hennerich, Michael
2019-04-05 15:11     ` Sebastian Reichel
2019-04-08  8:04       ` Mike Looijmans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).