]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: reset: st-poweroff: Use of_device_get_match_data()
authorRosen Penev <rosenp@gmail.com>
Tue, 19 May 2026 00:41:44 +0000 (17:41 -0700)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 3 Jun 2026 20:56:42 +0000 (22:56 +0200)
commitc05383b9074d72d244d3dea34832eeb725317575
tree686cf6cef7debc5c09b70e2416d2ad569e7fa785
parent5d543bf02965d1c04064acfd5e97d1529268d86f
power: reset: st-poweroff: Use of_device_get_match_data()

Use of_device_get_match_data() to fetch the reset syscfg data directly
instead of open-coding an of_match_device() lookup.

This also lets the driver drop the of_device.h include.

Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260519004144.626969-1-rosenp@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/st-poweroff.c