clk: change clk_debugfs_add_file to take a struct clk_hw
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 2 Dec 2014 07:54:21 +0000 (08:54 +0100)
committerMichael Turquette <mturquette@linaro.org>
Wed, 3 Dec 2014 23:15:35 +0000 (15:15 -0800)
Instead of struct clk, as this should be only used by providers.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk.c
include/linux/clk-provider.h

index 73247e90ee59d5f0351bfe4389a870807cfd6787..f549e8b1d5ed2a779003dd66dc66acb5216aa7b6 100644 (file)
@@ -354,13 +354,13 @@ out:
        mutex_unlock(&clk_debug_lock);
 }
 
-struct dentry *clk_debugfs_add_file(struct clk *clk, char *name, umode_t mode,
+struct dentry *clk_debugfs_add_file(struct clk_hw *hw, char *name, umode_t mode,
                                void *data, const struct file_operations *fops)
 {
        struct dentry *d = NULL;
 
-       if (clk->dentry)
-               d = debugfs_create_file(name, mode, clk->dentry, data, fops);
+       if (hw->clk->dentry)
+               d = debugfs_create_file(name, mode, hw->clk->dentry, data, fops);
 
        return d;
 }
index 270137aaf3abe32d71a1bfc4b71d75aa16f6674c..5e06f23eed419c6a975787ec608eb3336413d686 100644 (file)
@@ -650,7 +650,7 @@ static inline void clk_writel(u32 val, u32 __iomem *reg)
 #endif /* platform dependent I/O accessors */
 
 #ifdef CONFIG_DEBUG_FS
-struct dentry *clk_debugfs_add_file(struct clk *clk, char *name, umode_t mode,
+struct dentry *clk_debugfs_add_file(struct clk_hw *hw, char *name, umode_t mode,
                                void *data, const struct file_operations *fops);
 #endif