diff options
Diffstat (limited to 'include/clk.h')
-rw-r--r-- | include/clk.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clk.h b/include/clk.h index 9a357646ff0..f6d1cc53a1f 100644 --- a/include/clk.h +++ b/include/clk.h @@ -294,4 +294,14 @@ int clk_disable_bulk(struct clk_bulk *bulk); int soc_clk_dump(void); +/** + * clk_valid() - check if clk is valid + * + * @clk: the clock to check + * @return true if valid, or false + */ +static inline bool clk_valid(struct clk *clk) +{ + return !!clk->dev; +} #endif |