diff options
| author | Kaustabh Chakraborty <[email protected]> | 2025-10-17 20:58:17 +0530 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2025-10-30 10:11:18 +0800 |
| commit | 73a85502bd2a4373d82f638b1b4c3e1f79e394e3 (patch) | |
| tree | b8241e42b2282a9c63d3e38bfe82f0cef0a3822c /include/debug_uart.h | |
| parent | 86f793120ca62f3599e7907005a3cb8302e55fda (diff) | |
power: pmic: s2mps11: add support for allowing multiple device variants
There are multiple PMICs by Samsung which are similar in architecture
(register layout, interface, etc.) and is possible to be driven by a
single driver. Variant specific code and data should be managed properly
in the driver.
And an enum which describes all supported variants. Pass the enum as the
device driver data. Introduce a switch-case block on the enum for any
variant specific code.
Signed-off-by: Kaustabh Chakraborty <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'include/debug_uart.h')
0 files changed, 0 insertions, 0 deletions
