clk: ti: change ti_clk_register[_omap_hw]() API
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 13 Nov 2022 18:11:46 +0000 (19:11 +0100)
committerStephen Boyd <sboyd@kernel.org>
Wed, 23 Nov 2022 01:01:47 +0000 (17:01 -0800)
commit3400d546a741a2b2001d88e7fa29110d45a3930d
tree6fe6b5ad6ec9782b8f0f9bb7c38332981dc676b1
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
clk: ti: change ti_clk_register[_omap_hw]() API

The ti_clk_register() and ti_clk_register_omap_hw() functions are always
called with the parameter of type "struct device" set to NULL, since the
functions from which they are called always have a parameter of type
"struct device_node". Replacing "struct device" type parameter with
"struct device_node" will allow you to register a TI clock to the common
clock framework by taking advantage of the facilities provided by the
"struct device_node" type. Further, adding the "of_" prefix to the name
of these functions explicitly binds them to the "struct device_node"
type.

The patch has been tested on a Beaglebone board.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20221113181147.1626585-1-dario.binacchi@amarulasolutions.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
12 files changed:
drivers/clk/ti/apll.c
drivers/clk/ti/clk-dra7-atl.c
drivers/clk/ti/clk.c
drivers/clk/ti/clkctrl.c
drivers/clk/ti/clock.h
drivers/clk/ti/composite.c
drivers/clk/ti/divider.c
drivers/clk/ti/dpll.c
drivers/clk/ti/fixed-factor.c
drivers/clk/ti/gate.c
drivers/clk/ti/interface.c
drivers/clk/ti/mux.c