mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
power: supply: sbs-manager: Remove class argument from i2c_mux_add_adapter()
Commit 99a741aa7a2d ("i2c: mux: gpio: remove support for class-based
device instantiation") removed the last call to i2c_mux_add_adapter()
with a non-null class argument. Therefore the class argument can be
removed.
Note: Class-based device instantiation is a legacy mechanism which
shouldn't be used in new code, so we can rule out that this argument
may be needed again in the future.
This driver was forgotten by the patch in the Fixes tag.
Fixes: fec1982d70 ("i2c: mux: Remove class argument from i2c_mux_add_adapter()")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
f9dc0c4a14
commit
068a95ef39
|
|
@ -358,7 +358,7 @@ static int sbsm_probe(struct i2c_client *client)
|
|||
/* register muxed i2c channels. One for each supported battery */
|
||||
for (i = 0; i < SBSM_MAX_BATS; ++i) {
|
||||
if (data->supported_bats & BIT(i)) {
|
||||
ret = i2c_mux_add_adapter(data->muxc, 0, i + 1, 0);
|
||||
ret = i2c_mux_add_adapter(data->muxc, 0, i + 1);
|
||||
if (ret)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user