]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mfd: sec-i2c: Rework platform data and regmap instantiating
authorAndré Draszik <andre.draszik@linaro.org>
Wed, 9 Apr 2025 20:37:38 +0000 (21:37 +0100)
committerLee Jones <lee@kernel.org>
Fri, 23 May 2025 07:48:42 +0000 (08:48 +0100)
commitaaaeae7e2ad1574fad3c68e249f02fa87a600516
treec14098695812faf5c3c6606412cc6006e9af6181
parent0c33784aeaeb8867682e520bf28042b6ffce200a
mfd: sec-i2c: Rework platform data and regmap instantiating

Instead of a large open-coded switch statement, just add both regmap
config and device type to the OF match data. This allows us to have all
related information in one place, and avoids a long switch() statement.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-17-d66d5f39b6bf@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/sec-i2c.c