[U-Boot] [PATCH v4 09/13] dm: clk: Define clk_get_by_id() for clk operations
Lukasz Majewski
lukma at denx.de
Sat May 18 20:44:10 UTC 2019
Hi Simon,
> Hi Lukasz,
>
> On Thu, 16 May 2019 at 16:11, Lukasz Majewski <lukma at denx.de> wrote:
> >
> > This commit adds the clk_get_by_id() function, which is responsible
> > for getting the udevice with matching clk->id. Such approach allows
> > re-usage of inherit DM list relationship for the same class
> > (UCLASS_CLK). As a result - we don't need any other external list -
> > it is just enough to look for UCLASS_CLK related udevices.
> >
> > Signed-off-by: Lukasz Majewski <lukma at denx.de>
> >
> > ---
> >
> > Changes in v4: None
> > Changes in v3:
> > - Replace -ENODEV with -ENOENT
> > - Use **clkp instead of **c
> >
> > drivers/clk/clk-uclass.c | 22 ++++++++++++++++++++++
> > include/clk.h | 11 +++++++++++
> > 2 files changed, 33 insertions(+)
>
> Again this new function needs a test. I'll stop commenting now :-)
>
Please find corresponding test:
http://patchwork.ozlabs.org/patch/1100769/
> Regards,
> Simon
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190518/0a272e2c/attachment.sig>
More information about the U-Boot
mailing list