]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: x86: cmos_rtc: Clean up address space handler driver
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Feb 2026 15:28:15 +0000 (16:28 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Feb 2026 18:55:27 +0000 (19:55 +0100)
commitba0b236736dde4059bdcb8e99beaa50d6e5b6e7e
tree126a7672428093fb229b3a147e1a5c710b3ca618
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
ACPI: x86: cmos_rtc: Clean up address space handler driver

Make multiple changes that do not alter functionality to the CMOS RTC
ACPI address space handler driver, including the following:

 - Drop the unused .detach() callback from cmos_rtc_handler.

 - Rename acpi_cmos_rtc_attach_handler() to acpi_cmos_rtc_attach().

 - Rearrange acpi_cmos_rtc_space_handler() to reduce the number of
   redundant checks and make white space follow the coding style.

 - Adjust an error message in acpi_install_cmos_rtc_space_handler()
   and make the white space follow the coding style.

 - Rearrange acpi_remove_cmos_rtc_space_handler() and adjust an error
   message in it.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/5094429.31r3eYUQgx@rafael.j.wysocki
drivers/acpi/x86/cmos_rtc.c