Skip to content

Commit f7ea2dc

Browse files
sicceggeSamuel Ortiz
authored andcommitted
mfd: Remove leftover from discontinued TWL4030 battery patch
The TWL4030_BCI_BATTERY config option originates from a patch to the omap git tree. However inclusion in linux was seemingly rejected and the functionality nears inclusion under a different name so this removes the bits of the old version that made it into the mainline kernel again. Signed-off-by: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent ca229f1 commit f7ea2dc

2 files changed

Lines changed: 1 addition & 25 deletions

File tree

‎drivers/mfd/twl-core.c‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@
5858

5959
#define DRIVER_NAME "twl"
6060

61-
#if defined(CONFIG_TWL4030_BCI_BATTERY) || \
62-
defined(CONFIG_TWL4030_BCI_BATTERY_MODULE)
63-
#define twl_has_bci() true
64-
#else
65-
#define twl_has_bci() false
66-
#endif
67-
6861
#if defined(CONFIG_KEYBOARD_TWL4030) || defined(CONFIG_KEYBOARD_TWL4030_MODULE)
6962
#define twl_has_keypad() true
7063
#else
@@ -588,18 +581,6 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)
588581
struct device *child;
589582
unsigned sub_chip_id;
590583

591-
if (twl_has_bci() && pdata->bci &&
592-
!(features & (TPS_SUBSET | TWL5031))) {
593-
child = add_child(3, "twl4030_bci",
594-
pdata->bci, sizeof(*pdata->bci),
595-
false,
596-
/* irq0 = CHG_PRES, irq1 = BCI */
597-
pdata->irq_base + BCI_PRES_INTR_OFFSET,
598-
pdata->irq_base + BCI_INTR_OFFSET);
599-
if (IS_ERR(child))
600-
return PTR_ERR(child);
601-
}
602-
603584
if (twl_has_gpio() && pdata->gpio) {
604585
child = add_child(SUB_CHIP_ID1, "twl4030_gpio",
605586
pdata->gpio, sizeof(*pdata->gpio),

‎include/linux/i2c/twl.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,12 +605,7 @@ int twl4030_sih_setup(int module);
605605
#define TWL4030_VAUX3_DEV_GRP 0x1F
606606
#define TWL4030_VAUX3_DEDICATED 0x22
607607

608-
#if defined(CONFIG_TWL4030_BCI_BATTERY) || \
609-
defined(CONFIG_TWL4030_BCI_BATTERY_MODULE)
610-
extern int twl4030charger_usb_en(int enable);
611-
#else
612-
static inline int twl4030charger_usb_en(int enable) { return 0; }
613-
#endif
608+
static inline int twl4030charger_usb_en(int enable) { return 0; }
614609

615610
/*----------------------------------------------------------------------*/
616611

0 commit comments

Comments
 (0)