mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
power: supply: bq25890: Convert to i2c's .probe_new()
[ Upstream commitc5cddca235] The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Stable-dep-of:a7aaa80098("power: supply: bq25890: Ensure pump_express_work is cancelled on remove") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ebf085a725
commit
81b0e5d5aa
@@ -1219,8 +1219,7 @@ static int bq25890_fw_probe(struct bq25890_device *bq)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bq25890_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int bq25890_probe(struct i2c_client *client)
|
||||
{
|
||||
struct device *dev = &client->dev;
|
||||
struct bq25890_device *bq;
|
||||
@@ -1419,7 +1418,7 @@ static struct i2c_driver bq25890_driver = {
|
||||
.acpi_match_table = ACPI_PTR(bq25890_acpi_match),
|
||||
.pm = &bq25890_pm,
|
||||
},
|
||||
.probe = bq25890_probe,
|
||||
.probe_new = bq25890_probe,
|
||||
.remove = bq25890_remove,
|
||||
.shutdown = bq25890_shutdown,
|
||||
.id_table = bq25890_i2c_ids,
|
||||
|
||||
Reference in New Issue
Block a user