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)
commite456e6a12b7ad49b6e8ce2edfd30782ed6985cfb
tree827061edfbd93f749982703462b25bf15e2c1fe3
parent6cb57c678bb70ea180362ac47a5bf78a8c579b45
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