1CLK_GET(9)                      Clock Framework                     CLK_GET(9)
2
3
4

NAME

6       clk_get - lookup and obtain a reference to a clock producer.
7

SYNOPSIS

9       struct clk * clk_get(struct device * dev, const char * id);
10

ARGUMENTS

12       dev
13           device for clock “consumer”
14
15       id
16           clock comsumer ID
17

DESCRIPTION

19       Returns a struct clk corresponding to the clock producer, or valid
20       IS_ERR condition containing errno. The implementation uses dev and id
21       to determine the clock consumer, and thereby the clock producer. (IOW,
22       id may be identical strings, but clk_get may return different clock
23       producers depending on dev.)
24
25       Drivers must assume that the clock source is not enabled.
26
27       clk_get should not be called from within interrupt context.
28
30Kernel Hackers Manual 2.6.       November 2011                      CLK_GET(9)
Impressum