diff options
author | Sean Anderson | 2021-12-22 12:11:10 -0500 |
---|---|---|
committer | Sean Anderson | 2022-02-24 23:58:13 -0500 |
commit | 011bbfbb304fc6554163df34fbe0d50b88ace968 (patch) | |
tree | 106fa9c6bad0a1abc7fe9d35c0aea97c7f544e3f /include/clk.h | |
parent | 6c9239351af7aa3d074c325880b6c265f217cf80 (diff) |
clk: Rename clk_get_optional_nodev
This normalizes the name of this accessor function to put "_optional" last.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20211222171114.3091780-2-seanga2@gmail.com
Diffstat (limited to 'include/clk.h')
-rw-r--r-- | include/clk.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/clk.h b/include/clk.h index 040d2d60f7a..a8225eec72a 100644 --- a/include/clk.h +++ b/include/clk.h @@ -194,7 +194,7 @@ int clk_get_by_name(struct udevice *dev, const char *name, struct clk *clk); int clk_get_by_name_nodev(ofnode node, const char *name, struct clk *clk); /** - * clk_get_optional_nodev - Get/request an optinonal clock by name + * clk_get_by_name_nodev_optional - Get/request an optinonal clock by name * without a device. * @node: The client ofnode. * @name: The name of the clock to request. @@ -206,7 +206,8 @@ int clk_get_by_name_nodev(ofnode node, const char *name, struct clk *clk); * no clock producer, in this case, skip the error number -ENODATA, and * the function returns 0. */ -int clk_get_optional_nodev(ofnode node, const char *name, struct clk *clk); +int clk_get_by_name_nodev_optional(ofnode node, const char *name, + struct clk *clk); /** * devm_clk_get - lookup and obtain a managed reference to a clock producer. @@ -291,7 +292,7 @@ clk_get_by_name_nodev(ofnode node, const char *name, struct clk *clk) } static inline int -clk_get_optional_nodev(ofnode node, const char *name, struct clk *clk) +clk_get_by_name_nodev_optional(ofnode node, const char *name, struct clk *clk) { return -ENOSYS; } |