]> git.baikalelectronics.ru Git - kernel.git/commit
clk: meson: add clk-input helper function
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 4 Dec 2018 16:58:18 +0000 (17:58 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 5 Dec 2018 10:24:40 +0000 (11:24 +0100)
commit8d0c4b8c92935af57399023401e9454fcdebae49
tree827061edfbd93f749982703462b25bf15e2c1fe3
parentfde60703c8c96aa4b6adb7d43cbc35e63f0a4edd
clk: meson: add clk-input helper function

Add the clock input helper function. Several amlogic clock controllers
will now be registering bypass clock input. Instead of copying this
code in every of them, let's make an helper function for it

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
[narmstrong: fixed up to apply on Makefile and clkc.h]
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lkml.kernel.org/r/20181204165819.21541-2-jbrunet@baylibre.com
drivers/clk/meson/Makefile
drivers/clk/meson/clk-input.c [new file with mode: 0644]
drivers/clk/meson/clkc.h