lkml.org 
[lkml]   [2014]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 5/8] clk: change clk_debugfs_add_file to take a struct clk_hw
    Date
    Instead of struct clk, as this should be only used by providers.

    Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
    ---
    drivers/clk/clk.c | 6 +++---
    include/linux/clk-provider.h | 2 +-
    2 files changed, 4 insertions(+), 4 deletions(-)

    diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
    index 1dcd81a..a344d3e 100644
    --- a/drivers/clk/clk.c
    +++ b/drivers/clk/clk.c
    @@ -361,13 +361,13 @@ static void clk_debug_unregister(struct clk *clk)
    debugfs_remove_recursive(clk->dentry);
    }

    -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;
    }
    diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
    index eef1778..37bd7a5 100644
    --- a/include/linux/clk-provider.h
    +++ b/include/linux/clk-provider.h
    @@ -618,7 +618,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

    --
    1.9.3


    \
     
     \ /
      Last update: 2014-10-07 18:01    [W:3.690 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site