Commit aaaeae7e authored by André Draszik's avatar André Draszik Committed by Lee Jones
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarAndré Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-17-d66d5f39b6bf@linaro.org


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 0c33784a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment