[PATCH] mtd: create per-device and module-scope debugfs entries

Boris Brezillon boris.brezillon at free-electrons.com
Tue May 16 09:17:10 PDT 2017


On Tue, 16 May 2017 12:56:16 -0300
"Mario J. Rugiero" <mrugiero at gmail.com> wrote:

Please add a commit message here.

> Signed-off-by: Mario J. Rugiero <mrugiero at gmail.com>
> ---

[...]

> diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
> index f8a2ef239c60..905c119a2efe 100644
> --- a/include/linux/mtd/mtd.h
> +++ b/include/linux/mtd/mtd.h
> @@ -206,6 +206,18 @@ struct mtd_pairing_scheme {
>  
>  struct module;	/* only needed for owner field in mtd_info */
>  
> +#define MTD_DFS_DIR_NAME "mtd%2d"
> +#define MTD_DFS_DIR_LEN 3 + 2 + 1

I think you can drop these defs. They're never used since you use
mtd->name directly.



More information about the linux-mtd mailing list