mbox series

[v9,0/2] clk: Add functions to get optional clocks

Message ID 20181203111309.3709-1-phil.edworthy@renesas.com (mailing list archive)
Headers show
Series clk: Add functions to get optional clocks | expand

Message

Phil Edworthy Dec. 3, 2018, 11:13 a.m. UTC
Quite a few drivers get an optional clock, e.g. a bus clock required to 
access peripheral's registers that is always enabled on some devices.

v9:
 - Add a separate patch to add a comment about __of_clk_get_by_name() error
   values.
 - Add brackets after devm_clk_get so people know it's a function.
 - Add kernel doc for clk_get_optional().


Phil Edworthy (2):
  clk: Add comment about __of_clk_get_by_name() error values
  clk: Add (devm_)clk_get_optional() functions

 drivers/clk/clk-devres.c | 11 +++++++++++
 drivers/clk/clkdev.c     |  6 ++++++
 include/linux/clk.h      | 36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+)