Skip to content

Commit cd70c85

Browse files
krzksre
authored andcommitted
power: supply: max17040: drop unused platform data support
There are no platforms using the driver with platform data (no board files with the driver), so the dead code can be dropped. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent ce0ae83 commit cd70c85

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

drivers/power/supply/max17040_battery.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/interrupt.h>
1717
#include <linux/power_supply.h>
1818
#include <linux/of_device.h>
19-
#include <linux/max17040_battery.h>
2019
#include <linux/regmap.h>
2120
#include <linux/slab.h>
2221

@@ -142,7 +141,6 @@ struct max17040_chip {
142141
struct regmap *regmap;
143142
struct delayed_work work;
144143
struct power_supply *battery;
145-
struct max17040_platform_data *pdata;
146144
struct chip_data data;
147145

148146
/* battery capacity */
@@ -451,7 +449,6 @@ static int max17040_probe(struct i2c_client *client,
451449

452450
chip->client = client;
453451
chip->regmap = devm_regmap_init_i2c(client, &max17040_regmap);
454-
chip->pdata = client->dev.platform_data;
455452
chip_id = (enum chip_id) id->driver_data;
456453
if (client->dev.of_node) {
457454
ret = max17040_get_of_data(chip);

include/linux/max17040_battery.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)