clk: Add get/enable/disable/release for a bulk of clocks
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 3 Apr 2018 09:44:18 +0000 (11:44 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 10 Apr 2018 15:52:16 +0000 (11:52 -0400)
commita855be87da49ba750e83ecc526235fe33099f76e
treee0dfda3432251516b9752cbf05be632331b08c3c
parent91f5f8b73ccba5bf591912fe6e8c500a7d51eb93
clk: Add get/enable/disable/release for a bulk of clocks

This patch adds a "bulk" API to the clock API in order to get/enable/disable
/release a group of clocks associated with a device.

This bulk API will avoid adding a copy of the same code to manage
a group of clocks in drivers.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk-uclass.c
include/clk.h