Skip to content

Commit

Permalink
Rename max17042_battery -> max17042_battery_manager
Browse files Browse the repository at this point in the history
- Samsung heavily customized it and it needs the manager for
  it to work anyways, so let's make it a seperate driver.
  • Loading branch information
andi34 committed May 1, 2016
1 parent 3f1a9ca commit 70bf22f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion arch/arm/configs/espresso_defconfig
Expand Up @@ -1467,7 +1467,7 @@ CONFIG_PDA_POWER=y
# CONFIG_BATTERY_BQ20Z75 is not set
# CONFIG_BATTERY_BQ27x00 is not set
# CONFIG_BATTERY_MAX17040 is not set
CONFIG_BATTERY_MAX17042=y
CONFIG_BATTERY_MAX17042_MANAGER=y
# CONFIG_CHARGER_ISP1704 is not set
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_TWL4030 is not set
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/board-espresso-power.c
Expand Up @@ -26,7 +26,7 @@
#include <linux/i2c-gpio.h>
#include <linux/i2c/twl.h>
#include <linux/power/smb_charger.h>
#include <linux/power/max17042_battery.h>
#include <linux/power/max17042_battery_manager.h>
#include <linux/bat_manager.h>
#include <linux/battery.h>
#include <linux/irq.h>
Expand Down
13 changes: 6 additions & 7 deletions drivers/power/Kconfig
Expand Up @@ -179,15 +179,14 @@ config BATTERY_MAX17040
in handheld and portable equipment. The MAX17040 is configured
to operate with a single lithium cell

config BATTERY_MAX17042
tristate "Maxim MAX17042/8997/8966 Fuel Gauge"
config BATTERY_MAX17042_MANAGER
tristate "Maxim MAX17042 Fuel Gauge"
depends on I2C
depends on BATTERY_MANAGER
help
MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
in handheld and portable equipment. The MAX17042 is configured
to operate with a single lithium cell. MAX8997 and MAX8966 are
multi-function devices that include fuel gauages that are compatible
with MAX17042.
to operate with a single lithium cell.

config BATTERY_Z2
tristate "Z2 battery driver"
Expand Down Expand Up @@ -278,9 +277,9 @@ config CHARGER_SMB347
config BATTERY_MANAGER
tristate "Battery Manager"
help
Say Y to enable supprot SEC Battery manager.
Say Y to enable support SEC Battery manager.
This driver include battery concept.
Charging(Discharging) by temperature, limit timer
Charging (Discharging) by temperature, limit timer
and fully charged.

endif # POWER_SUPPLY
2 changes: 1 addition & 1 deletion drivers/power/Makefile
Expand Up @@ -26,7 +26,7 @@ obj-$(CONFIG_BATTERY_BQ20Z75) += bq20z75.o
obj-$(CONFIG_BATTERY_BQ27x00) += bq27x00_battery.o
obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o
obj-$(CONFIG_BATTERY_MAX17042) += max17042_battery.o
obj-$(CONFIG_BATTERY_MAX17042_MANAGER) += max17042_battery_manager.o
obj-$(CONFIG_BATTERY_Z2) += z2_battery.o
obj-$(CONFIG_BATTERY_S3C_ADC) += s3c_adc_battery.o
obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
Expand Down
Expand Up @@ -27,7 +27,7 @@
#include <linux/i2c.h>
#include <linux/mod_devicetable.h>
#include <linux/battery.h>
#include <linux/power/max17042_battery.h>
#include <linux/power/max17042_battery_manager.h>
#include <linux/rtc.h>
#include <linux/delay.h>
#include <linux/mutex.h>
Expand Down
Expand Up @@ -20,8 +20,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#ifndef __MAX17042_BATTERY_H_
#define __MAX17042_BATTERY_H_
#ifndef __MAX17042_BATTERY_MANAGER_H_
#define __MAX17042_BATTERY_MANAGER_H_

#include <linux/battery.h>

Expand Down

0 comments on commit 70bf22f

Please sign in to comment.