media: i2c: ds90ub960: Replace aliased clients list with address list
authorRomain Gantois <romain.gantois@bootlin.com>
Thu, 6 Mar 2025 16:23:23 +0000 (17:23 +0100)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 18 Apr 2025 21:33:11 +0000 (23:33 +0200)
commit666be28145afbcde4a1223e6bc398664abdf8bec
treeecc9c59d7fd035cfe4d48ce941283bb3f85956ac
parent35c6e493bd54fcc92ca4e4d15e2a8e365ba4dde4
media: i2c: ds90ub960: Replace aliased clients list with address list

The ds90ub960 driver currently uses a list of i2c_client structs to keep
track of used I2C address translator (ATR) alias slots for each RX port.

Keeping these i2c_client structs in the alias slot list isn't actually
needed, the driver only needs to know the client address for each slot.

Convert the aliased_clients list to a list of aliased client addresses.
This will allow removing the "client" parameter from the i2c-atr callbacks
in a future patch.

Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
Acked-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/media/i2c/ds90ub960.c