mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
hwmon: (pmbus) shrink code and remove pmbus_do_remove()
The only action currently performed in pmbus_do_remove() is removing the debugfs hierarchy. We can schedule a devm action at probe time and remove pmbus_do_remove() entirely from all pmbus drivers. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Link: https://lore.kernel.org/r/20201026105352.20359-1-brgl@bgdev.pl [groeck: Removed references to pmbus_do_remove from documentation] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
committed by
Guenter Roeck
parent
ad00a02e34
commit
3bce071a30
@@ -277,12 +277,6 @@ with the pointer to struct pmbus_driver_info as additional argument. Calls
|
||||
identify function if supported. Must only be called from device probe
|
||||
function.
|
||||
|
||||
::
|
||||
|
||||
void pmbus_do_remove(struct i2c_client *client);
|
||||
|
||||
Execute driver remove function. Similar to standard driver remove function.
|
||||
|
||||
::
|
||||
|
||||
const struct pmbus_driver_info
|
||||
|
||||
@@ -148,11 +148,6 @@ Emerson DS1200 power modules might look as follows::
|
||||
return pmbus_do_probe(client, &ds1200_info);
|
||||
}
|
||||
|
||||
static int ds1200_remove(struct i2c_client *client)
|
||||
{
|
||||
return pmbus_do_remove(client);
|
||||
}
|
||||
|
||||
static const struct i2c_device_id ds1200_id[] = {
|
||||
{"ds1200", 0},
|
||||
{}
|
||||
@@ -166,7 +161,6 @@ Emerson DS1200 power modules might look as follows::
|
||||
.name = "ds1200",
|
||||
},
|
||||
.probe_new = ds1200_probe,
|
||||
.remove = ds1200_remove,
|
||||
.id_table = ds1200_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -502,7 +502,6 @@ static struct i2c_driver adm1266_driver = {
|
||||
.of_match_table = adm1266_of_match,
|
||||
},
|
||||
.probe_new = adm1266_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = adm1266_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -797,7 +797,6 @@ static struct i2c_driver adm1275_driver = {
|
||||
.name = "adm1275",
|
||||
},
|
||||
.probe_new = adm1275_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = adm1275_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -121,7 +121,6 @@ static struct i2c_driver pfe_pmbus_driver = {
|
||||
.name = "bel-pfe",
|
||||
},
|
||||
.probe_new = pfe_pmbus_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = pfe_device_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -617,7 +617,6 @@ static struct i2c_driver ibm_cffps_driver = {
|
||||
.of_match_table = ibm_cffps_of_match,
|
||||
},
|
||||
.probe_new = ibm_cffps_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = ibm_cffps_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -216,7 +216,6 @@ static struct i2c_driver ipsps_driver = {
|
||||
.of_match_table = of_match_ptr(ipsps_of_match),
|
||||
},
|
||||
.probe_new = ipsps_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = ipsps_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -137,7 +137,6 @@ static struct i2c_driver ir35221_driver = {
|
||||
.name = "ir35221",
|
||||
},
|
||||
.probe_new = ir35221_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = ir35221_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ static struct i2c_driver ir38064_driver = {
|
||||
.name = "ir38064",
|
||||
},
|
||||
.probe_new = ir38064_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = ir38064_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -55,7 +55,6 @@ static struct i2c_driver irps5401_driver = {
|
||||
.name = "irps5401",
|
||||
},
|
||||
.probe_new = irps5401_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = irps5401_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -324,7 +324,6 @@ static struct i2c_driver isl68137_driver = {
|
||||
.name = "isl68137",
|
||||
},
|
||||
.probe_new = isl68137_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = raa_dmpvr_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -508,7 +508,6 @@ static struct i2c_driver lm25066_driver = {
|
||||
.name = "lm25066",
|
||||
},
|
||||
.probe_new = lm25066_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = lm25066_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -875,7 +875,6 @@ static struct i2c_driver ltc2978_driver = {
|
||||
.of_match_table = of_match_ptr(ltc2978_of_match),
|
||||
},
|
||||
.probe_new = ltc2978_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = ltc2978_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -200,7 +200,6 @@ static struct i2c_driver ltc3815_driver = {
|
||||
.name = "ltc3815",
|
||||
},
|
||||
.probe_new = ltc3815_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = ltc3815_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -103,7 +103,6 @@ static struct i2c_driver max16064_driver = {
|
||||
.name = "max16064",
|
||||
},
|
||||
.probe_new = max16064_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = max16064_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -302,7 +302,6 @@ static struct i2c_driver max16601_driver = {
|
||||
.name = "max16601",
|
||||
},
|
||||
.probe_new = max16601_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = max16601_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -777,7 +777,6 @@ static struct i2c_driver max20730_driver = {
|
||||
.of_match_table = max20730_of_match,
|
||||
},
|
||||
.probe_new = max20730_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = max20730_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -43,7 +43,6 @@ static struct i2c_driver max20751_driver = {
|
||||
.name = "max20751",
|
||||
},
|
||||
.probe_new = max20751_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = max20751_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -390,7 +390,6 @@ static struct i2c_driver max31785_driver = {
|
||||
.of_match_table = max31785_of_match,
|
||||
},
|
||||
.probe_new = max31785_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = max31785_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -521,7 +521,6 @@ static struct i2c_driver max34440_driver = {
|
||||
.name = "max34440",
|
||||
},
|
||||
.probe_new = max34440_probe,
|
||||
.remove = pmbus_do_remove,
|
||||
.id_table = max34440_id,
|
||||
};
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user