linux/include
Kuninori Morimoto 5d92d533cf UPSTREAM: clk: add devm_get_clk_from_child() API
Some driver is using this type of DT bindings for clock (more detail,
see ${LINUX}/Documentation/devicetree/bindings/sound/simple-card.txt).

	sound_soc {
		...
		cpu {
			clocks = <&xxx>;
			...
		};
		codec {
			clocks = <&xxx>;
			...
		};
	};

Current driver in this case uses of_clk_get() for each node, but there
is no devm_of_clk_get() today.
OTOH, the problem of having devm_of_clk_get() is that it encourages the
use of of_clk_get() when clk_get() is more desirable.

Thus, this patch adds new devm_get_clk_from_chile() which explicitly
reads as get a clock from a child node of this device.
By this function, we can also use this type of DT bindings

	sound_soc {
		clocks = <&xxx>, <&xxx>;
		clock-names = "cpu", "codec";
		clock-ranges;
		...
		cpu {
			...
		};
		codec {
			...
		};
	};

Change-Id: Ie5b3bf7bda683a47ff07bea85982e916db12a1cb
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
[sboyd@codeurora.org: Rename subject to clk + add API]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 71a2f11511)
2018-08-24 14:42:19 +08:00
..
acpi
asm-generic LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
clocksource
crypto UPSTREAM: crypto: hash - add zero length message hash for shax and md5 2018-05-24 11:44:00 +08:00
drm BACKPORT: drm: Add some HDCP related #defines 2018-08-15 17:28:40 +08:00
dt-bindings dt-bindings: suspend: rk3308: add timer test control macro 2018-08-24 09:56:11 +08:00
keys
kvm
linux UPSTREAM: clk: add devm_get_clk_from_child() API 2018-08-24 14:42:19 +08:00
math-emu
media camera: rockchip: merge modification of rv1108 isp11 2018-07-25 14:52:52 +08:00
memory
misc
net LSK 18.07 v4.4-android 2018-08-03 10:09:13 +08:00
pcmcia
ras
rdma RDMA/ucma: Introduce safer rdma_addr_size() variants 2018-04-08 11:51:59 +02:00
rxrpc
scsi scsi: sg: disable SET_FORCE_LOW_DMA 2018-01-23 19:50:14 +01:00
soc phy/rockchip: typec: improved handling of typec_dp_phy_config() 2018-08-16 18:13:54 +08:00
sound ASoC: rockchip: vad: optimize vad process 2018-06-08 14:38:07 +08:00
target target: Avoid early CMD_T_PRE_EXECUTE failures during ABORT_TASK 2018-01-17 09:35:31 +01:00
trace LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
uapi drm/rockchip: vop: add support rk1808 vop 2018-08-15 17:38:03 +08:00
video
xen fix xen_swiotlb_dma_mmap prototype 2017-10-05 09:41:48 +02:00
Kbuild