Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pm2301-charger: Removed unused code from PM2301 driver

Some of the headers and defines accrued over time are no longer
in use. Let's take the opportunity to remove a few of them.

Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com>
Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>

authored by

Rupesh Kumar and committed by
Lee Jones
f70dfdec 261c5136

-27
-5
drivers/power/pm2301_charger.c
··· 16 16 #include <linux/slab.h> 17 17 #include <linux/platform_device.h> 18 18 #include <linux/power_supply.h> 19 - #include <linux/completion.h> 20 19 #include <linux/regulator/consumer.h> 21 20 #include <linux/err.h> 22 21 #include <linux/i2c.h> 23 22 #include <linux/workqueue.h> 24 - #include <linux/kobject.h> 25 - #include <linux/mfd/abx500.h> 26 23 #include <linux/mfd/abx500/ab8500.h> 27 24 #include <linux/mfd/abx500/ab8500-bm.h> 28 - #include <linux/mfd/abx500/ab8500-gpadc.h> 29 25 #include <linux/mfd/abx500/ux500_chargalg.h> 30 26 #include <linux/pm2301_charger.h> 31 27 #include <linux/gpio.h> ··· 1014 1018 1015 1019 /* get parent data */ 1016 1020 pm2->dev = &i2c_client->dev; 1017 - pm2->gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); 1018 1021 1019 1022 pm2->pm2_int = &pm2xxx_int; 1020 1023
-22
drivers/power/pm2301_charger.h
··· 9 9 #ifndef PM2301_CHARGER_H 10 10 #define PM2301_CHARGER_H 11 11 12 - #define MAIN_WDOG_ENA 0x01 13 - #define MAIN_WDOG_KICK 0x02 14 - #define MAIN_WDOG_DIS 0x00 15 - #define CHARG_WD_KICK 0x01 16 - #define MAIN_CH_ENA 0x01 17 - #define MAIN_CH_NO_OVERSHOOT_ENA_N 0x02 18 - #define MAIN_CH_DET 0x01 19 - #define MAIN_CH_CV_ON 0x04 20 - #define OTP_ENABLE_WD 0x01 21 - 22 - #define MAIN_CH_INPUT_CURR_SHIFT 4 23 - 24 - #define LED_INDICATOR_PWM_ENA 0x01 25 - #define LED_INDICATOR_PWM_DIS 0x00 26 - #define LED_IND_CUR_5MA 0x04 27 - #define LED_INDICATOR_PWM_DUTY_252_256 0xBF 28 - 29 - /* HW failure constants */ 30 - #define MAIN_CH_TH_PROT 0x02 31 - #define MAIN_CH_NOK 0x01 32 - 33 12 /* Watchdog timeout constant */ 34 13 #define WD_TIMER 0x30 /* 4min */ 35 14 #define WD_KICK_INTERVAL (30 * HZ) ··· 474 495 int failure_input_ovv; 475 496 unsigned int lpn_pin; 476 497 struct pm2xxx_interrupts *pm2_int; 477 - struct ab8500_gpadc *gpadc; 478 498 struct regulator *regu; 479 499 struct pm2xxx_bm_data *bat; 480 500 struct mutex lock;