PM: clk: make pm_clk_add_notifier() take a const pointer
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2023 14:07:23 +0000 (15:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 13:35:57 +0000 (14:35 +0100)
commitdb2292b01b799e926abfdbd6fafa1f27f0d0e457
tree8bc6b62c4ef4f0e84157697bd71a08a4866068a9
parentf36be9ce8146faabdbbf74ee0499edb2039c53a5
PM: clk: make pm_clk_add_notifier() take a const pointer

The driver core wants to work with const struct bus_type, so there's no
reason that pm_clk_add_notifier() should not also do the same thing,
considering that it just passes the pointer off to the driver core which
is expecting a const *.

Cc: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/2023121922-triumph-exploit-f545@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/clock_ops.c
include/linux/pm_clock.h