0
0
mirror of https://mirrors.bfsu.edu.cn/git/linux.git synced 2024-12-21 18:14:48 +08:00
linux/Documentation/driver-model
Phil Edworthy 60b8f0ddf1 clk: Add (devm_)clk_get_optional() functions
This adds clk_get_optional() and devm_clk_get_optional() functions to get
optional clocks.

They behave the same as (devm_)clk_get() except where there is no clock
producer. In this case, instead of returning -ENOENT, the function
returns NULL. This makes error checking simpler and allows
clk_prepare_enable, etc to be called on the returned reference
without additional checks.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Russell King <linux@armlinux.org.uk>
[sboyd@kernel.org: Document in devres.txt]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2019-02-06 10:33:10 -08:00
..
binding.txt docs/driver-model: Update device class docs 2011-08-24 16:01:24 -07:00
bus.txt doc: driver-model: improve wording "is provide the" 2014-12-29 15:29:33 -07:00
class.txt driver core: remove the driver-model structures from the documentation 2011-05-06 18:01:05 -07:00
design-patterns.txt Documentation: fix spelling in design-patterns 2013-12-19 10:10:32 -08:00
device.txt docs/driver-model: fix typo 2016-09-16 10:01:45 -06:00
devres.txt clk: Add (devm_)clk_get_optional() functions 2019-02-06 10:33:10 -08:00
driver.txt driver core: remove DRIVER_ATTR 2017-09-19 09:20:33 +02:00
overview.txt DOCUMENTATION: Update overview.txt in Doc/driver-model. 2011-06-07 10:04:21 -07:00
platform.txt driver-core: platform: fix typo in documentation for multi-driver helper 2016-02-09 17:39:33 -08:00
porting.txt ARM: 8524/1: driver cohandle -EPROBE_DEFER from bus_type.match() 2016-02-16 16:28:51 +00:00