]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mfd: tps65219: Remove another unused field from 'struct tps65219'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Jun 2025 18:30:52 +0000 (20:30 +0200)
committerLee Jones <lee@kernel.org>
Thu, 24 Jul 2025 10:27:09 +0000 (11:27 +0100)
The 'chip_id' field from 'struct tps65219' is unused.
Remove it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f20443e6e13b0b101648a41010a19ee56589fa0b.1750530460.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/tps65219.c
include/linux/mfd/tps65219.h

index 83b8ab4707c21ff464bead73834aa94d133fd504..65a952555218dc3a0dcfd3ab9dfae79f0122b0fc 100644 (file)
@@ -477,6 +477,7 @@ static int tps65219_probe(struct i2c_client *client)
 {
        struct tps65219 *tps;
        const struct tps65219_chip_data *pmic;
+       unsigned int chip_id;
        bool pwr_button;
        int ret;
 
@@ -487,8 +488,8 @@ static int tps65219_probe(struct i2c_client *client)
        i2c_set_clientdata(client, tps);
 
        tps->dev = &client->dev;
-       tps->chip_id = (uintptr_t)i2c_get_match_data(client);
-       pmic = &chip_info_table[tps->chip_id];
+       chip_id = (uintptr_t)i2c_get_match_data(client);
+       pmic = &chip_info_table[chip_id];
 
        tps->regmap = devm_regmap_init_i2c(client, &tps65219_regmap_config);
        if (IS_ERR(tps->regmap)) {
index 6900029323777507415570d5e04f0f8876d5ae36..55234e771ba735a0c091f123073262e039cf0c1b 100644 (file)
@@ -437,14 +437,12 @@ enum tps65219_irqs {
  *
  * @dev: MFD device
  * @regmap: Regmap for accessing the device registers
- * @chip_id: Chip ID
  * @irq_data: Regmap irq data used for the irq chip
  */
 struct tps65219 {
        struct device *dev;
        struct regmap *regmap;
 
-       unsigned int chip_id;
        struct regmap_irq_chip_data *irq_data;
 };