Re: [PATCH v3] mtd: remove DEBUGFS_RO_ATTR()
From: Frank Lee
Date: Sun Dec 02 2018 - 03:37:03 EST
On Sun, Dec 2, 2018 at 4:15 PM Boris Brezillon
<boris.brezillon@xxxxxxxxxxx> wrote:
>
> Looks like getting rid of DEBUGFS_RO_ATTR() is just one of the change
> you do. I think you should change the subject line:
>
> "mtd: use DEFINE_SHOW_ATTRIBUTE() instead of open-coding it"
>
> This way it covers all of your changes.
>
> On Sun, 2 Dec 2018 02:32:02 -0500
> Yangtao Li <tiny.windzz@xxxxxxxxx> wrote:
>
> > We already have the DEFINE_SHOW_ATTRIBUTE.There is no need to define
>
> ^ missing space
>
> > such a macro,so remove DEBUGFS_RO_ATTR.Also use DEFINE_SHOW_ATTRIBUTE
>
> ^ here as well
>
> > to simplify some code.
>
> If you go for the new subject line, you'll have to change this commit
> message.
How about the newer?
MBR,
Yangtao