]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: tps65219: Add support for TPS65215 regulator resources
authorShree Ramamoorthy <s-ramamoorthy@ti.com>
Fri, 25 Apr 2025 20:57:34 +0000 (15:57 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 1 May 2025 20:39:04 +0000 (05:39 +0900)
commit3f2e457efdad5af4164f155bd7ac902258a9b1ce
treee8bc2c115c6ca013d6888c7bd3686dd275b556e0
parent8c04144e156b49980a786e80c855e41f6c71685c
regulator: tps65219: Add support for TPS65215 regulator resources

Isolate all changes involving TPS65215 regulator desc and range resources.

- 'chipid' will identify which PMIC to support, and the corresponding
  chip_data struct element to use in probe(). The chip_data struct is
  helpful for any new PMICs added to this driver. The goal is to add future
  PMIC info to necessary structs and minimize probe() function edits.

- The probe() will now loop through common (overlapping) regulators first,
  then device-specific structs identified in the chip_data struct.

- Add TI TPS65215 PMIC to the existing platform_device_id struct, so the
  regulator probe() can handle which PMIC chip_data information to use.

Signed-off-by: Shree Ramamoorthy <s-ramamoorthy@ti.com>
Link: https://patch.msgid.link/20250425205736.76433-3-s-ramamoorthy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/tps65219-regulator.c