Re: [PATCH] mhi: Rename debugfs directory name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 15, 2021 at 04:42:33PM +0100, Loic Poulain wrote:
> Use MHI controller device name instead of the 'bus' device name as
> debugfs dir name (e.g. /sys/kernel/debug/mhi0). That aligns with
> sysfs device name.
> 
> Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxxx>

Applied to mhi-next!

Thanks,
Mani

> ---
>  drivers/bus/mhi/core/debugfs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/bus/mhi/core/debugfs.c b/drivers/bus/mhi/core/debugfs.c
> index 7d43138..858d751 100644
> --- a/drivers/bus/mhi/core/debugfs.c
> +++ b/drivers/bus/mhi/core/debugfs.c
> @@ -377,7 +377,7 @@ static struct dentry *mhi_debugfs_root;
>  void mhi_create_debugfs(struct mhi_controller *mhi_cntrl)
>  {
>  	mhi_cntrl->debugfs_dentry =
> -			debugfs_create_dir(dev_name(mhi_cntrl->cntrl_dev),
> +			debugfs_create_dir(dev_name(&mhi_cntrl->mhi_dev->dev),
>  					   mhi_debugfs_root);
>  
>  	debugfs_create_file("states", 0444, mhi_cntrl->debugfs_dentry,
> -- 
> 2.7.4
> 



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux