Skip to content

Commit 83f9afe

Browse files
tititiou36lag-linaro
authored andcommitted
mfd: tps65219: Remove another unused field from 'struct tps65219'
The 'chip_id' field from 'struct tps65219' is unused. Remove it. Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/f20443e6e13b0b101648a41010a19ee56589fa0b.1750530460.git.christophe.jaillet@wanadoo.fr Signed-off-by: Lee Jones <[email protected]>
1 parent ea39dd2 commit 83f9afe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/mfd/tps65219.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ static int tps65219_probe(struct i2c_client *client)
477477
{
478478
struct tps65219 *tps;
479479
const struct tps65219_chip_data *pmic;
480+
unsigned int chip_id;
480481
bool pwr_button;
481482
int ret;
482483

@@ -487,8 +488,8 @@ static int tps65219_probe(struct i2c_client *client)
487488
i2c_set_clientdata(client, tps);
488489

489490
tps->dev = &client->dev;
490-
tps->chip_id = (uintptr_t)i2c_get_match_data(client);
491-
pmic = &chip_info_table[tps->chip_id];
491+
chip_id = (uintptr_t)i2c_get_match_data(client);
492+
pmic = &chip_info_table[chip_id];
492493

493494
tps->regmap = devm_regmap_init_i2c(client, &tps65219_regmap_config);
494495
if (IS_ERR(tps->regmap)) {

include/linux/mfd/tps65219.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,12 @@ enum tps65219_irqs {
437437
*
438438
* @dev: MFD device
439439
* @regmap: Regmap for accessing the device registers
440-
* @chip_id: Chip ID
441440
* @irq_data: Regmap irq data used for the irq chip
442441
*/
443442
struct tps65219 {
444443
struct device *dev;
445444
struct regmap *regmap;
446445

447-
unsigned int chip_id;
448446
struct regmap_irq_chip_data *irq_data;
449447
};
450448

0 commit comments

Comments
 (0)