summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>2026-07-21 11:36:22 +0200
committerStephen Boyd <sboyd@kernel.org>2026-10-14 20:03:59 -0700
commitc3e4860e172b11ef57316f78142e3e3da374e523 (patch)
tree2da39f14e9b7a697cf06a601e2bfa4ff3bf805e8 /include/linux
parent1e048fe2908c59c5f0cacd61e4be30d5bbc45f0e (diff)
power: reset: qcom-pon: Migrate to devm_spmi_subdevice_alloc_and_add()
Some Qualcomm PMICs integrates a Power On device supporting pwrkey and resin along with the Android reboot reason action identifier. Instead of using the parent SPMI device (the main PMIC) as a kind of syscon in this driver, register a new SPMI sub-device for PON and initialize its own regmap with this sub-device's specific base address, retrieved from the devicetree. This allows to stop manually adding the register base address to every R/W call in this driver, as this can be, and is now, handled by the regmap API instead. Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8650-QRD Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions