From: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
To: "Andrew F. Davis" <afd@ti.com>
Cc: "Pali Rohár" <pali.rohar@gmail.com>,
"Evgeniy Polyakov" <zbr@ioremap.net>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] power: supply: move HDQ interface for bq27xxx from w1 to power/supply
Date: Tue, 25 Jul 2017 15:30:22 +0200 [thread overview]
Message-ID: <20170725133022.xjxqas7xy24v3pqa@earth> (raw)
In-Reply-To: <20170719170407.14005-2-afd@ti.com>
[-- Attachment #1: Type: text/plain, Size: 4015 bytes --]
Hi,
On Wed, Jul 19, 2017 at 12:04:06PM -0500, Andrew F. Davis wrote:
> The HDQ interface driver should be in this folder just like the I2C
> interface driver. Move this driver out of drivers/w1/slave and into
> drivers/power/supply.
>
> Signed-off-by: Andrew F. Davis <afd@ti.com>
> Acked-by: Pali Rohár <pali.rohar@gmail.com>
> Acked-by: Sebastian Reichel <sre@kernel.org>
Thanks, queued to power-supply's for-next branch. I prepared a
immutable branch/tag for the w1 tree and will send a pull request
for that in a minute.
-- Sebastian
> drivers/power/supply/Kconfig | 9 +++++++++
> drivers/power/supply/Makefile | 1 +
> .../slaves/w1_bq27000.c => power/supply/bq27xxx_battery_hdq.c} | 2 --
> drivers/w1/slaves/Kconfig | 6 ------
> drivers/w1/slaves/Makefile | 1 -
> 5 files changed, 10 insertions(+), 9 deletions(-)
> rename drivers/{w1/slaves/w1_bq27000.c => power/supply/bq27xxx_battery_hdq.c} (98%)
>
> diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig
> index 969f5005669c..af6397224a82 100644
> --- a/drivers/power/supply/Kconfig
> +++ b/drivers/power/supply/Kconfig
> @@ -198,6 +198,15 @@ config BATTERY_BQ27XXX_I2C
> Say Y here to enable support for batteries with BQ27xxx chips
> connected over an I2C bus.
>
> +config BATTERY_BQ27XXX_HDQ
> + tristate "BQ27xxx HDQ support"
> + depends on BATTERY_BQ27XXX
> + depends on W1
> + default y
> + help
> + Say Y here to enable support for batteries with BQ27xxx chips
> + connected over an HDQ bus.
> +
> config BATTERY_BQ27XXX_DT_UPDATES_NVM
> bool "BQ27xxx support for update of NVM/flash data memory"
> depends on BATTERY_BQ27XXX_I2C
> diff --git a/drivers/power/supply/Makefile b/drivers/power/supply/Makefile
> index a41f40957847..946a5e6be860 100644
> --- a/drivers/power/supply/Makefile
> +++ b/drivers/power/supply/Makefile
> @@ -38,6 +38,7 @@ obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o
> obj-$(CONFIG_CHARGER_SBS) += sbs-charger.o
> obj-$(CONFIG_BATTERY_BQ27XXX) += bq27xxx_battery.o
> obj-$(CONFIG_BATTERY_BQ27XXX_I2C) += bq27xxx_battery_i2c.o
> +obj-$(CONFIG_BATTERY_BQ27XXX_HDQ) += bq27xxx_battery_hdq.o
> obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
> obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
> obj-$(CONFIG_CHARGER_DA9150) += da9150-charger.o
> diff --git a/drivers/w1/slaves/w1_bq27000.c b/drivers/power/supply/bq27xxx_battery_hdq.c
> similarity index 98%
> rename from drivers/w1/slaves/w1_bq27000.c
> rename to drivers/power/supply/bq27xxx_battery_hdq.c
> index 8046ac45381a..f4df67eb9d2c 100644
> --- a/drivers/w1/slaves/w1_bq27000.c
> +++ b/drivers/power/supply/bq27xxx_battery_hdq.c
> @@ -1,6 +1,4 @@
> /*
> - * drivers/w1/slaves/w1_bq27000.c
> - *
> * Copyright (C) 2007 Texas Instruments, Inc.
> *
> * This file is licensed under the terms of the GNU General Public License
> diff --git a/drivers/w1/slaves/Kconfig b/drivers/w1/slaves/Kconfig
> index fb68465908f2..dc4437683956 100644
> --- a/drivers/w1/slaves/Kconfig
> +++ b/drivers/w1/slaves/Kconfig
> @@ -140,10 +140,4 @@ config W1_SLAVE_DS28E04
>
> If you are unsure, say N.
>
> -config W1_SLAVE_BQ27000
> - tristate "BQ27000 slave support"
> - help
> - Say Y here if you want to use a hdq
> - bq27000 slave support.
> -
> endmenu
> diff --git a/drivers/w1/slaves/Makefile b/drivers/w1/slaves/Makefile
> index 54c63e420302..e59441a5e157 100644
> --- a/drivers/w1/slaves/Makefile
> +++ b/drivers/w1/slaves/Makefile
> @@ -15,5 +15,4 @@ obj-$(CONFIG_W1_SLAVE_DS2438) += w1_ds2438.o
> obj-$(CONFIG_W1_SLAVE_DS2760) += w1_ds2760.o
> obj-$(CONFIG_W1_SLAVE_DS2780) += w1_ds2780.o
> obj-$(CONFIG_W1_SLAVE_DS2781) += w1_ds2781.o
> -obj-$(CONFIG_W1_SLAVE_BQ27000) += w1_bq27000.o
> obj-$(CONFIG_W1_SLAVE_DS28E04) += w1_ds28e04.o
> --
> 2.13.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-07-25 13:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-19 17:04 [PATCH v2 0/2] Remove BQ27xxx platform interface Andrew F. Davis
2017-07-19 17:04 ` [PATCH v2 1/2] power: supply: move HDQ interface for bq27xxx from w1 to power/supply Andrew F. Davis
2017-07-25 13:30 ` Sebastian Reichel [this message]
2017-07-25 13:48 ` Sebastian Reichel
2017-08-27 7:25 ` Evgeniy Polyakov
2017-07-19 17:04 ` [PATCH v2 2/2] power: supply: bq27xxx: move platform driver code into bq27xxx_battery_hdq.c Andrew F. Davis
2017-07-25 13:42 ` Sebastian Reichel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170725133022.xjxqas7xy24v3pqa@earth \
--to=sebastian.reichel@collabora.co.uk \
--cc=afd@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pali.rohar@gmail.com \
--cc=zbr@ioremap.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox