[PATCH v2 2/8] clk: mux: add helper function for index/value translation

2018-02-14 Thread Jerome Brunet
Add helper functions for the translation between parent index and register value in the generic multiplexer function. The purpose of this change is avoid duplicating the code in other clock providers, using the same generic logic. Signed-off-by: Jerome Brunet ---

[PATCH v2 2/8] clk: mux: add helper function for index/value translation

2018-02-14 Thread Jerome Brunet
Add helper functions for the translation between parent index and register value in the generic multiplexer function. The purpose of this change is avoid duplicating the code in other clock providers, using the same generic logic. Signed-off-by: Jerome Brunet --- drivers/clk/clk-mux.c|