Commit f9ca07a1 authored by Sebastian Reichel's avatar Sebastian Reichel Committed by Sebastian Reichel

power: supply: sbs-battery: switch to i2c's probe_new

sbs-battery does not use the ID parameter, so switch to i2c's
probe_new API.
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 03b758ba
...@@ -992,8 +992,7 @@ static const struct power_supply_desc sbs_default_desc = { ...@@ -992,8 +992,7 @@ static const struct power_supply_desc sbs_default_desc = {
.external_power_changed = sbs_external_power_changed, .external_power_changed = sbs_external_power_changed,
}; };
static int sbs_probe(struct i2c_client *client, static int sbs_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct sbs_info *chip; struct sbs_info *chip;
struct power_supply_desc *sbs_desc; struct power_supply_desc *sbs_desc;
...@@ -1172,7 +1171,7 @@ static const struct of_device_id sbs_dt_ids[] = { ...@@ -1172,7 +1171,7 @@ static const struct of_device_id sbs_dt_ids[] = {
MODULE_DEVICE_TABLE(of, sbs_dt_ids); MODULE_DEVICE_TABLE(of, sbs_dt_ids);
static struct i2c_driver sbs_battery_driver = { static struct i2c_driver sbs_battery_driver = {
.probe = sbs_probe, .probe_new = sbs_probe,
.remove = sbs_remove, .remove = sbs_remove,
.alert = sbs_alert, .alert = sbs_alert,
.id_table = sbs_id, .id_table = sbs_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment