diff mbox series

[06/27] power: remove z2_battery driver

Message ID 20230105134622.254560-7-arnd@kernel.org (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series ARM: pxa: remove all unused boards&drivers | expand

Commit Message

Arnd Bergmann Jan. 5, 2023, 1:46 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de>

The PXA z2 platform is gone, and this driver is now orphaned.

Cc: linux-pm@vger.kernel.org
Cc: Peter Edwards <sweetlilmre@gmail.com>
Cc: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/power/supply/Kconfig      |   6 -
 drivers/power/supply/Makefile     |   1 -
 drivers/power/supply/z2_battery.c | 318 ------------------------------
 include/linux/z2_battery.h        |  17 --
 4 files changed, 342 deletions(-)
 delete mode 100644 drivers/power/supply/z2_battery.c
 delete mode 100644 include/linux/z2_battery.h

Comments

Sebastian Reichel Jan. 5, 2023, 4:35 p.m. UTC | #1
Hi,

On Thu, Jan 05, 2023 at 02:46:01PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> The PXA z2 platform is gone, and this driver is now orphaned.
> 
> Cc: linux-pm@vger.kernel.org
> Cc: Peter Edwards <sweetlilmre@gmail.com>
> Cc: Sebastian Reichel <sre@kernel.org>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---

This should go through the same tree as the patch removing
arch/arm/mach-pxa/z2.c, which includes z2_battery.h removed
by this patch, so:

Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>

-- Sebastian

>  drivers/power/supply/Kconfig      |   6 -
>  drivers/power/supply/Makefile     |   1 -
>  drivers/power/supply/z2_battery.c | 318 ------------------------------
>  include/linux/z2_battery.h        |  17 --
>  4 files changed, 342 deletions(-)
>  delete mode 100644 drivers/power/supply/z2_battery.c
>  delete mode 100644 include/linux/z2_battery.h
> 
> diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig
> index 98d4e9364606..b7fdcfd5d4e7 100644
> --- a/drivers/power/supply/Kconfig
> +++ b/drivers/power/supply/Kconfig
> @@ -422,12 +422,6 @@ config BATTERY_MAX1721X
>  	  Say Y here to enable support for the MAX17211/MAX17215 standalone
>  	  battery gas-gauge.
>  
> -config BATTERY_Z2
> -	tristate "Z2 battery driver"
> -	depends on I2C && MACH_ZIPIT2
> -	help
> -	  Say Y to include support for the battery on the Zipit Z2.
> -
>  config BATTERY_TWL4030_MADC
>  	tristate "TWL4030 MADC battery driver"
>  	depends on TWL4030_MADC
> diff --git a/drivers/power/supply/Makefile b/drivers/power/supply/Makefile
> index 2fb02f19a9e0..38737ea9b9d5 100644
> --- a/drivers/power/supply/Makefile
> +++ b/drivers/power/supply/Makefile
> @@ -54,7 +54,6 @@ obj-$(CONFIG_BATTERY_DA9150)	+= da9150-fg.o
>  obj-$(CONFIG_BATTERY_MAX17040)	+= max17040_battery.o
>  obj-$(CONFIG_BATTERY_MAX17042)	+= max17042_battery.o
>  obj-$(CONFIG_BATTERY_MAX1721X)	+= max1721x_battery.o
> -obj-$(CONFIG_BATTERY_Z2)	+= z2_battery.o
>  obj-$(CONFIG_BATTERY_RT5033)	+= rt5033_battery.o
>  obj-$(CONFIG_CHARGER_RT9455)	+= rt9455_charger.o
>  obj-$(CONFIG_BATTERY_TWL4030_MADC)	+= twl4030_madc_battery.o
> diff --git a/drivers/power/supply/z2_battery.c b/drivers/power/supply/z2_battery.c
> deleted file mode 100644
> index 0ba4a590a0a5..000000000000
> diff --git a/include/linux/z2_battery.h b/include/linux/z2_battery.h
> deleted file mode 100644
> index 9e8be7a7cd25..000000000000
> -- 
> 2.39.0
>
diff mbox series

Patch

diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig
index 98d4e9364606..b7fdcfd5d4e7 100644
--- a/drivers/power/supply/Kconfig
+++ b/drivers/power/supply/Kconfig
@@ -422,12 +422,6 @@  config BATTERY_MAX1721X
 	  Say Y here to enable support for the MAX17211/MAX17215 standalone
 	  battery gas-gauge.
 
-config BATTERY_Z2
-	tristate "Z2 battery driver"
-	depends on I2C && MACH_ZIPIT2
-	help
-	  Say Y to include support for the battery on the Zipit Z2.
-
 config BATTERY_TWL4030_MADC
 	tristate "TWL4030 MADC battery driver"
 	depends on TWL4030_MADC
diff --git a/drivers/power/supply/Makefile b/drivers/power/supply/Makefile
index 2fb02f19a9e0..38737ea9b9d5 100644
--- a/drivers/power/supply/Makefile
+++ b/drivers/power/supply/Makefile
@@ -54,7 +54,6 @@  obj-$(CONFIG_BATTERY_DA9150)	+= da9150-fg.o
 obj-$(CONFIG_BATTERY_MAX17040)	+= max17040_battery.o
 obj-$(CONFIG_BATTERY_MAX17042)	+= max17042_battery.o
 obj-$(CONFIG_BATTERY_MAX1721X)	+= max1721x_battery.o
-obj-$(CONFIG_BATTERY_Z2)	+= z2_battery.o
 obj-$(CONFIG_BATTERY_RT5033)	+= rt5033_battery.o
 obj-$(CONFIG_CHARGER_RT9455)	+= rt9455_charger.o
 obj-$(CONFIG_BATTERY_TWL4030_MADC)	+= twl4030_madc_battery.o
diff --git a/drivers/power/supply/z2_battery.c b/drivers/power/supply/z2_battery.c
deleted file mode 100644
index 0ba4a590a0a5..000000000000
diff --git a/include/linux/z2_battery.h b/include/linux/z2_battery.h
deleted file mode 100644
index 9e8be7a7cd25..000000000000