File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,7 @@ static int tps65219_probe(struct i2c_client *client)
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
@@ -487,8 +488,8 @@ static int tps65219_probe(struct i2c_client *client)
487
488
i2c_set_clientdata (client , tps );
488
489
489
490
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 ];
492
493
493
494
tps -> regmap = devm_regmap_init_i2c (client , & tps65219_regmap_config );
494
495
if (IS_ERR (tps -> regmap )) {
Original file line number Diff line number Diff line change @@ -437,14 +437,12 @@ enum tps65219_irqs {
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
You can’t perform that action at this time.
0 commit comments