aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2014-12-02 02:54:21 -0500
committerMichael Turquette <mturquette@linaro.org>2014-12-03 18:15:35 -0500
commit61c7cddfad266ebb86176723f9c679f25cf705fe (patch)
tree5d23c645b5726cd595e1e19e9f56068c466cf468
parent920f1c7472f35cd3b3a3add10cccb0ef12376a17 (diff)
clk: change clk_debugfs_add_file to take a struct clk_hw
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>
-rw-r--r--drivers/clk/clk.c6
-rw-r--r--include/linux/clk-provider.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 73247e90ee59..f549e8b1d5ed 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -354,13 +354,13 @@ out:
354 mutex_unlock(&clk_debug_lock); 354 mutex_unlock(&clk_debug_lock);
355} 355}
356 356
357struct dentry *clk_debugfs_add_file(struct clk *clk, char *name, umode_t mode, 357struct dentry *clk_debugfs_add_file(struct clk_hw *hw, char *name, umode_t mode,
358 void *data, const struct file_operations *fops) 358 void *data, const struct file_operations *fops)
359{ 359{
360 struct dentry *d = NULL; 360 struct dentry *d = NULL;
361 361
362 if (clk->dentry) 362 if (hw->clk->dentry)
363 d = debugfs_create_file(name, mode, clk->dentry, data, fops); 363 d = debugfs_create_file(name, mode, hw->clk->dentry, data, fops);
364 364
365 return d; 365 return d;
366} 366}
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 270137aaf3ab..5e06f23eed41 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -650,7 +650,7 @@ static inline void clk_writel(u32 val, u32 __iomem *reg)
650#endif /* platform dependent I/O accessors */ 650#endif /* platform dependent I/O accessors */
651 651
652#ifdef CONFIG_DEBUG_FS 652#ifdef CONFIG_DEBUG_FS
653struct dentry *clk_debugfs_add_file(struct clk *clk, char *name, umode_t mode, 653struct dentry *clk_debugfs_add_file(struct clk_hw *hw, char *name, umode_t mode,
654 void *data, const struct file_operations *fops); 654 void *data, const struct file_operations *fops);
655#endif 655#endif
656 656