When the related bindings get merged, we will add more input clocks to the different amlogic clock controllers. Instead of copying this code around, lets create an helper function and use it. Jerome Brunet (2): clk: meson: add clk-input helper function clk: meson: axg-audio: use the clk input helper function drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/axg-audio.c | 83 ++++++++++------------------------- drivers/clk/meson/clk-input.c | 44 +++++++++++++++++++ drivers/clk/meson/clkc.h | 5 +++ 4 files changed, 74 insertions(+), 60 deletions(-) create mode 100644 drivers/clk/meson/clk-input.c -- 2.19.1