Skip to content

Commit 068a95e

Browse files
author
Wolfram Sang
committed
power: supply: sbs-manager: Remove class argument from i2c_mux_add_adapter()
Commit 99a741a ("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: fec1982 ("i2c: mux: Remove class argument from i2c_mux_add_adapter()") Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Sebastian Reichel <[email protected]>
1 parent f9dc0c4 commit 068a95e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/sbs-manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static int sbsm_probe(struct i2c_client *client)
358358
/* register muxed i2c channels. One for each supported battery */
359359
for (i = 0; i < SBSM_MAX_BATS; ++i) {
360360
if (data->supported_bats & BIT(i)) {
361-
ret = i2c_mux_add_adapter(data->muxc, 0, i + 1, 0);
361+
ret = i2c_mux_add_adapter(data->muxc, 0, i + 1);
362362
if (ret)
363363
break;
364364
}

0 commit comments

Comments
 (0)