* [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
* Re: [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name
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
1 sibling, 0 replies; 6+ messages in thread
From: Rob Herring @ 2019-03-29 16:21 UTC (permalink / raw)
To: michael.hennerich; +Cc: mike.looijmans, sre, linux-pm, devicetree, robin.getz
On Tue, Mar 26, 2019 at 02:57:15PM +0100, michael.hennerich@analog.com wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
Seems to be a bit more than 'fix a typo'.
>
> 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",
You should note that this one is deprecated.
> + * "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>;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name
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
1 sibling, 1 reply; 6+ messages in thread
From: Sebastian Reichel @ 2019-04-05 14:37 UTC (permalink / raw)
To: michael.hennerich
Cc: mike.looijmans, robh+dt, linux-pm, devicetree, robin.getz
[-- Attachment #1: Type: text/plain, Size: 3942 bytes --]
Hi,
On Tue, Mar 26, 2019 at 02:57:15PM +0100, michael.hennerich@analog.com wrote:
> 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>
> ---
Please change subject to "power: supply: ltc3651-charger: Fix device name"
Also we probably should change the filenames and Kconfig name.
-- Sebastian
> .../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
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name
2019-04-05 14:37 ` Sebastian Reichel
@ 2019-04-05 14:58 ` Hennerich, Michael
2019-04-05 15:11 ` Sebastian Reichel
0 siblings, 1 reply; 6+ messages in thread
From: Hennerich, Michael @ 2019-04-05 14:58 UTC (permalink / raw)
To: Sebastian Reichel
Cc: mike.looijmans@topic.nl, robh+dt@kernel.org,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Getz, Robin
> -----Original Message-----
> From: Sebastian Reichel [mailto:sre@kernel.org]
> Sent: Freitag, 5. April 2019 16:38
> To: Hennerich, Michael <Michael.Hennerich@analog.com>
> Cc: mike.looijmans@topic.nl; robh+dt@kernel.org; linux-pm@vger.kernel.org; devicetree@vger.kernel.org; Getz, Robin
> <Robin.Getz@analog.com>
> Subject: Re: [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name
>
> Hi,
>
> On Tue, Mar 26, 2019 at 02:57:15PM +0100, michael.hennerich@analog.com wrote:
> > 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>
> > ---
>
> Please change subject to "power: supply: ltc3651-charger: Fix device name"
Sure
>
> Also we probably should change the filenames and Kconfig name.
If we go that far we can also fix the function prefixes as well.
I'm a bit hesitant about the Kconfig name. It'll break existing kernel configs for no good reason!?
Please let me know what you prefer.
Thanks for the review.
-- Michael
>
> -- Sebastian
>
> > .../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 [flat|nested] 6+ messages in thread
* Re: [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name
2019-04-05 14:58 ` Hennerich, Michael
@ 2019-04-05 15:11 ` Sebastian Reichel
2019-04-08 8:04 ` Mike Looijmans
0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Reichel @ 2019-04-05 15:11 UTC (permalink / raw)
To: Hennerich, Michael
Cc: mike.looijmans@topic.nl, robh+dt@kernel.org,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Getz, Robin
[-- Attachment #1: Type: text/plain, Size: 5298 bytes --]
Hi,
On Fri, Apr 05, 2019 at 02:58:24PM +0000, Hennerich, Michael wrote:
> > -----Original Message-----
> > From: Sebastian Reichel [mailto:sre@kernel.org]
> > Sent: Freitag, 5. April 2019 16:38
> > To: Hennerich, Michael <Michael.Hennerich@analog.com>
> > Cc: mike.looijmans@topic.nl; robh+dt@kernel.org; linux-pm@vger.kernel.org; devicetree@vger.kernel.org; Getz, Robin
> > <Robin.Getz@analog.com>
> > Subject: Re: [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name
> >
> > Hi,
> >
> > On Tue, Mar 26, 2019 at 02:57:15PM +0100, michael.hennerich@analog.com wrote:
> > > 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>
> > > ---
> >
> > Please change subject to "power: supply: ltc3651-charger: Fix device name"
>
> Sure
>
> > Also we probably should change the filenames and Kconfig name.
>
> If we go that far we can also fix the function prefixes as well.
sounds good to me.
> I'm a bit hesitant about the Kconfig name. It'll break existing kernel configs
> for no good reason!? Please let me know what you prefer.
I suppose we can keep to the old Kconfig option, if this is being
used already. Hopefully not many people search for their driver
using raw Kconfig names :)
-- Sebastian
>
> Thanks for the review.
>
> -- Michael
>
> >
> > -- Sebastian
> >
> > > .../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
> > >
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name
2019-04-05 15:11 ` Sebastian Reichel
@ 2019-04-08 8:04 ` Mike Looijmans
0 siblings, 0 replies; 6+ messages in thread
From: Mike Looijmans @ 2019-04-08 8:04 UTC (permalink / raw)
To: Sebastian Reichel, Hennerich, Michael
Cc: robh+dt@kernel.org, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, Getz, Robin
On 05-04-19 17:11, Sebastian Reichel wrote:
> Hi,
>
> On Fri, Apr 05, 2019 at 02:58:24PM +0000, Hennerich, Michael wrote:
>>> -----Original Message-----
>>> From: Sebastian Reichel [mailto:sre@kernel.org]
>>> Sent: Freitag, 5. April 2019 16:38
>>> To: Hennerich, Michael <Michael.Hennerich@analog.com>
>>> Cc: mike.looijmans@topic.nl; robh+dt@kernel.org; linux-pm@vger.kernel.org; devicetree@vger.kernel.org; Getz, Robin
>>> <Robin.Getz@analog.com>
>>> Subject: Re: [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name
>>>
>>> Hi,
>>>
>>> On Tue, Mar 26, 2019 at 02:57:15PM +0100, michael.hennerich@analog.com wrote:
>>>> 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>
>>>> ---
>>>
>>> Please change subject to "power: supply: ltc3651-charger: Fix device name"
>>
>> Sure
>>
>>> Also we probably should change the filenames and Kconfig name.
>>
>> If we go that far we can also fix the function prefixes as well.
>
> sounds good to me.
>
>> I'm a bit hesitant about the Kconfig name. It'll break existing kernel configs
>> for no good reason!? Please let me know what you prefer.
>
> I suppose we can keep to the old Kconfig option, if this is being
> used already. Hopefully not many people search for their driver
> using raw Kconfig names :)
Well, if you don't change it now, it will never get fixed.
I'm actually in favor of completely fixing the name. It does mean that I'll
have to update a few devicetrees and configs, but in the long run, I think
it's the better choice.
>
> -- Sebastian
>
>>
>> Thanks for the review.
>>
>> -- Michael
>>
>>>
>>> -- Sebastian
>>>
>>>> .../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 [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).