lkml.org 
[lkml]   [2023]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH RFC 0/5] Deprecate register_restart_handler()
Date
Hello all,

Explanation is in patch #1.

The rest of this series is a set of representative examples of converting
away from the old API. They should be valid and can be taken by their
respective maintainers even if patch #1 doesn't find acceptance.

Thanks,
Andrew

Andrew Davis (5):
kernel/reboot: Deprecate register_restart_handler()
drivers/soc/litex: Use devm_register_restart_handler()
power: reset: gpio-restart: Use devm_register_sys_off_handler()
spi: sprd: adi: Use devm_register_restart_handler()
firmware: psci: Use register_sys_off_handler(SYS_OFF_MODE_RESTART)

drivers/firmware/psci/psci.c | 10 ++-------
drivers/power/reset/gpio-restart.c | 34 ++++++++----------------------
drivers/soc/litex/litex_soc_ctrl.c | 23 +++++---------------
drivers/spi/spi-sprd-adi.c | 30 +++++++-------------------
include/linux/reboot.h | 8 +++++--
kernel/reboot.c | 3 +++
6 files changed, 33 insertions(+), 75 deletions(-)

--
2.39.2

\
 
 \ /
  Last update: 2023-11-20 14:03    [W:0.070 / U:3.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site