Commit 081bab21 authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Sebastian Reichel

power: bq27x00_battery: Renaming for consistency

Rename functions that are used by multiple devices. New devices
have been added and the function names and driver name are no longer
general enough for the functionality they provide.
Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Acked-by: default avatarGUAN Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 95b8aff2
...@@ -7393,10 +7393,10 @@ NOKIA N900 POWER SUPPLY DRIVERS ...@@ -7393,10 +7393,10 @@ NOKIA N900 POWER SUPPLY DRIVERS
M: Pali Rohár <pali.rohar@gmail.com> M: Pali Rohár <pali.rohar@gmail.com>
S: Maintained S: Maintained
F: include/linux/power/bq2415x_charger.h F: include/linux/power/bq2415x_charger.h
F: include/linux/power/bq27x00_battery.h F: include/linux/power/bq27xxx_battery.h
F: include/linux/power/isp1704_charger.h F: include/linux/power/isp1704_charger.h
F: drivers/power/bq2415x_charger.c F: drivers/power/bq2415x_charger.c
F: drivers/power/bq27x00_battery.c F: drivers/power/bq27xxx_battery.c
F: drivers/power/isp1704_charger.c F: drivers/power/isp1704_charger.c
F: drivers/power/rx51_battery.c F: drivers/power/rx51_battery.c
......
...@@ -245,7 +245,7 @@ CONFIG_GPIO_TWL4030=y ...@@ -245,7 +245,7 @@ CONFIG_GPIO_TWL4030=y
CONFIG_GPIO_PALMAS=y CONFIG_GPIO_PALMAS=y
CONFIG_W1=m CONFIG_W1=m
CONFIG_HDQ_MASTER_OMAP=m CONFIG_HDQ_MASTER_OMAP=m
CONFIG_BATTERY_BQ27x00=m CONFIG_BATTERY_BQ27XXX=m
CONFIG_CHARGER_ISP1704=m CONFIG_CHARGER_ISP1704=m
CONFIG_CHARGER_TWL4030=m CONFIG_CHARGER_TWL4030=m
CONFIG_CHARGER_BQ2415X=m CONFIG_CHARGER_BQ2415X=m
......
...@@ -222,7 +222,7 @@ config I2C_BATTERY_BQ27200 ...@@ -222,7 +222,7 @@ config I2C_BATTERY_BQ27200
tristate "I2C Battery BQ27200 Support" tristate "I2C Battery BQ27200 Support"
select I2C_PUV3 select I2C_PUV3
select POWER_SUPPLY select POWER_SUPPLY
select BATTERY_BQ27x00 select BATTERY_BQ27XXX
config I2C_EEPROM_AT24 config I2C_EEPROM_AT24
tristate "I2C EEPROMs AT24 support" tristate "I2C EEPROMs AT24 support"
......
...@@ -157,26 +157,26 @@ config BATTERY_SBS ...@@ -157,26 +157,26 @@ config BATTERY_SBS
Say Y to include support for SBS battery driver for SBS-compliant Say Y to include support for SBS battery driver for SBS-compliant
gas gauges. gas gauges.
config BATTERY_BQ27x00 config BATTERY_BQ27XXX
tristate "BQ27x00 battery driver" tristate "BQ27xxx battery driver"
depends on I2C || I2C=n depends on I2C || I2C=n
help help
Say Y here to enable support for batteries with BQ27x00 (I2C/HDQ) chips. Say Y here to enable support for batteries with BQ27xxx (I2C/HDQ) chips.
config BATTERY_BQ27X00_I2C config BATTERY_BQ27XXX_I2C
bool "BQ27200/BQ27500 support" bool "BQ27xxx I2C support"
depends on BATTERY_BQ27x00 depends on BATTERY_BQ27XXX
depends on I2C depends on I2C
default y default y
help help
Say Y here to enable support for batteries with BQ27x00 (I2C) chips. Say Y here to enable support for batteries with BQ27xxx (I2C) chips.
config BATTERY_BQ27X00_PLATFORM config BATTERY_BQ27XXX_PLATFORM
bool "BQ27000 support" bool "BQ27xxx HDQ support"
depends on BATTERY_BQ27x00 depends on BATTERY_BQ27XXX
default y default y
help help
Say Y here to enable support for batteries with BQ27000 (HDQ) chips. Say Y here to enable support for batteries with BQ27xxx (HDQ) chips.
config BATTERY_DA9030 config BATTERY_DA9030
tristate "DA9030 battery driver" tristate "DA9030 battery driver"
......
...@@ -30,7 +30,7 @@ obj-$(CONFIG_BATTERY_COLLIE) += collie_battery.o ...@@ -30,7 +30,7 @@ obj-$(CONFIG_BATTERY_COLLIE) += collie_battery.o
obj-$(CONFIG_BATTERY_IPAQ_MICRO) += ipaq_micro_battery.o obj-$(CONFIG_BATTERY_IPAQ_MICRO) += ipaq_micro_battery.o
obj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o obj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o
obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o
obj-$(CONFIG_BATTERY_BQ27x00) += bq27x00_battery.o obj-$(CONFIG_BATTERY_BQ27XXX) += bq27xxx_battery.o
obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
obj-$(CONFIG_CHARGER_DA9150) += da9150-charger.o obj-$(CONFIG_CHARGER_DA9150) += da9150-charger.o
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/power/bq27x00_battery.h> #include <linux/power/bq27xxx_battery.h>
#include "../w1.h" #include "../w1.h"
#include "../w1_int.h" #include "../w1_int.h"
...@@ -39,7 +39,7 @@ static int w1_bq27000_read(struct device *dev, unsigned int reg) ...@@ -39,7 +39,7 @@ static int w1_bq27000_read(struct device *dev, unsigned int reg)
return val; return val;
} }
static struct bq27000_platform_data bq27000_battery_info = { static struct bq27xxx_platform_data bq27000_battery_info = {
.read = w1_bq27000_read, .read = w1_bq27000_read,
.name = "bq27000-battery", .name = "bq27000-battery",
}; };
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#define __LINUX_BQ27X00_BATTERY_H__ #define __LINUX_BQ27X00_BATTERY_H__
/** /**
* struct bq27000_plaform_data - Platform data for bq27000 devices * struct bq27xxx_plaform_data - Platform data for bq27xxx devices
* @name: Name of the battery. If NULL the driver will fallback to "bq27000". * @name: Name of the battery. If NULL the driver will fallback to "bq27000".
* @read: HDQ read callback. * @read: HDQ read callback.
* This function should provide access to the HDQ bus the battery is * This function should provide access to the HDQ bus the battery is
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* register to be read. The return value should either be the content of * register to be read. The return value should either be the content of
* the passed register or an error value. * the passed register or an error value.
*/ */
struct bq27000_platform_data { struct bq27xxx_platform_data {
const char *name; const char *name;
int (*read)(struct device *dev, unsigned int); int (*read)(struct device *dev, unsigned int);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment