File Index
Files and directories
Sign in
FILE

clk.h

File preview with syntax highlighting.

linux-6.19.14/include/kunit/clk.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _CLK_KUNIT_H
 3#define _CLK_KUNIT_H
 4
 5struct clk;
 6struct clk_hw;
 7struct device;
 8struct device_node;
 9struct of_phandle_args;
10struct kunit;
11
12struct clk *
13clk_get_kunit(struct kunit *test, struct device *dev, const char *con_id);
14struct clk *
15of_clk_get_kunit(struct kunit *test, struct device_node *np, int index);
16
17struct clk *
18clk_hw_get_clk_kunit(struct kunit *test, struct clk_hw *hw, const char *con_id);
19struct clk *
20clk_hw_get_clk_prepared_enabled_kunit(struct kunit *test, struct clk_hw *hw,
21				      const char *con_id);
22
23int clk_prepare_enable_kunit(struct kunit *test, struct clk *clk);
24
25int clk_hw_register_kunit(struct kunit *test, struct device *dev, struct clk_hw *hw);
26int of_clk_hw_register_kunit(struct kunit *test, struct device_node *node,
27			     struct clk_hw *hw);
28
29int of_clk_add_hw_provider_kunit(struct kunit *test, struct device_node *np,
30				 struct clk_hw *(*get)(struct of_phandle_args *clkspec, void *data),
31				 void *data);
32
33#endif
~/ Read-only file preview.