]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: reset: sc27xx: Add platform_device_id table
authorOtto Pflüger <otto.pflueger@abscue.de>
Thu, 28 May 2026 16:18:24 +0000 (18:18 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 1 Jun 2026 23:37:00 +0000 (01:37 +0200)
commitb6c7feeb604262f31a4279bd66aa300ad0903255
treefc869717f76102b07beb45844ffd7b8fd16487bc
parente3f669bed32287ae72c05a4ddab4a6687b0e62ca
power: reset: sc27xx: Add platform_device_id table

Make the poweroff driver for SC27xx-series PMICs probe automatically.
Since the device representing the poweroff functionality of the SC27xx
PMIC is not supposed to have a dedicated device tree node without any
corresponding DT resources [1], an of_device_id table cannot be used
here. Instead, use a platform_device_id table to match the poweroff
sub-device instantiated by the parent MFD driver.

[1]: https://lore.kernel.org/all/20251002025344.GA2958334-robh@kernel.org/

Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
Link: https://patch.msgid.link/20260528-sc27xx-mfd-cells-v3-2-25cd685d2743@abscue.de
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/sc27xx-poweroff.c