]> www.infradead.org Git - users/dwmw2/linux.git/commit
driver core: Put device attribute @wakeup_last_time_ms and its show() together
authorZijun Hu <quic_zijuhu@quicinc.com>
Mon, 28 Oct 2024 12:11:11 +0000 (20:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2024 00:59:18 +0000 (01:59 +0100)
commiteafb1a86acbb3efc6e509e1b5529fc2383bdcd6d
treec1e5fe1dc8363f7bd4201b25e8b58998e9f99204
parentf87f132c5826b8635846348d3f4a9fb2f218057a
driver core: Put device attribute @wakeup_last_time_ms and its show() together

Move location of dpm_sysfs_wakeup_change_owner() a bit to

- Put device attribute @wakeup_last_time_ms and its show() together.
- Put two different instances of dpm_sysfs_wakeup_change_owner() together.

That will make better code layout.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20241028-fix_power_sysfs-v1-1-7b2fbeb14d47@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/sysfs.c