i2c: omap: switch to new generic helper for getting selected mux-state
authorJosua Mayer <josua@solid-run.com>
Thu, 26 Feb 2026 13:21:14 +0000 (15:21 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 9 Mar 2026 12:44:45 +0000 (13:44 +0100)
commit43c00f2bcff7c6e235f0c1b1eb18a6db0aa23815
tree7a716fa122760bbad29cc66b5144021c4bbc4c40
parent602236a78291c0ead8667be2c7a9199d2c290479
i2c: omap: switch to new generic helper for getting selected mux-state

Multiplexer subsystem has added generic helper functions for getting an
already selected mux-state object.

Replace existing logic in probe with the equivalent helper function.

There is a functional difference in that the mux is now automatically
deselected on release, replacing the explicit mux_state_deselect call.

This change is only compile-tested.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andreas Kemnade <andreas@kemnade.info>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Josua Mayer <josua@solid-run.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/i2c/busses/i2c-omap.c