'\" t .\" Title: devm_get_clk_from_child .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Clock Framework .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "DEVM_GET_CLK_FROM_CH" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "Clock Framework" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" devm_get_clk_from_child \- lookup and obtain a managed reference to a clock producer from child node\&. .SH "SYNOPSIS" .HP \w'struct\ clk\ *\ devm_get_clk_from_child('u .BI "struct clk * devm_get_clk_from_child(struct\ device\ *\ " "dev" ", struct\ device_node\ *\ " "np" ", const\ char\ *\ " "con_id" ");" .SH "ARGUMENTS" .PP \fIstruct device * dev\fR .RS 4 device for clock \(lqconsumer\(rq .RE .PP \fIstruct device_node * np\fR .RS 4 pointer to clock consumer node .RE .PP \fIconst char * con_id\fR .RS 4 clock consumer ID .RE .SH "DESCRIPTION" .PP This function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using \fInp\fR and \fIcon_id\fR .PP The clock will automatically be freed when the device is unbound from the bus\&. .SH "COPYRIGHT" .br