]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: add a clk_hw helpers to get the clock device or device_node
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 17 Apr 2025 13:44:22 +0000 (15:44 +0200)
committerStephen Boyd <sboyd@kernel.org>
Fri, 20 Jun 2025 01:25:48 +0000 (18:25 -0700)
commit5f4081d6fafec6c9dca9e7990e783b70db854a5c
treee3b1557f32e54ee31f9ccdca9cd12f7d18a344a1
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
clk: add a clk_hw helpers to get the clock device or device_node

Add helpers to get the device or device_node associated with clk_hw.

This can be used by clock drivers to access various device related
functionality such as devres, dev_ prints, etc ...

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20250417-clk-hw-get-helpers-v1-1-7743e509612a@baylibre.com
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c
include/linux/clk-provider.h