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

Configure Feed

Select the types of activity you want to include in your feed.

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 <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>

authored by

Christophe JAILLET and committed by
Lee Jones
83f9afe4 ea39dd26

+3 -4
+3 -2
drivers/mfd/tps65219.c
··· 477 477 { 478 478 struct tps65219 *tps; 479 479 const struct tps65219_chip_data *pmic; 480 + unsigned int chip_id; 480 481 bool pwr_button; 481 482 int ret; 482 483 ··· 488 487 i2c_set_clientdata(client, tps); 489 488 490 489 tps->dev = &client->dev; 491 - tps->chip_id = (uintptr_t)i2c_get_match_data(client); 492 - pmic = &chip_info_table[tps->chip_id]; 490 + chip_id = (uintptr_t)i2c_get_match_data(client); 491 + pmic = &chip_info_table[chip_id]; 493 492 494 493 tps->regmap = devm_regmap_init_i2c(client, &tps65219_regmap_config); 495 494 if (IS_ERR(tps->regmap)) {
-2
include/linux/mfd/tps65219.h
··· 437 437 * 438 438 * @dev: MFD device 439 439 * @regmap: Regmap for accessing the device registers 440 - * @chip_id: Chip ID 441 440 * @irq_data: Regmap irq data used for the irq chip 442 441 */ 443 442 struct tps65219 { 444 443 struct device *dev; 445 444 struct regmap *regmap; 446 445 447 - unsigned int chip_id; 448 446 struct regmap_irq_chip_data *irq_data; 449 447 }; 450 448