[PATCH 2/6] power: pmic: s2mps11: add support for allowing multiple device variants
    Peng Fan 
    peng.fan at oss.nxp.com
       
    Wed Oct 22 10:23:13 CEST 2025
    
    
  
On Fri, Oct 17, 2025 at 08:58:17PM +0530, Kaustabh Chakraborty wrote:
>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 <kauschluss at disroot.org>
Reviewed-by: Peng Fan <peng.fan at nxp.com>
    
    
More information about the U-Boot
mailing list