Re: [PATCH] scripts: Add device_attr_<rw|ro|wr>.pl scripts to convert DEVICE_ATTR uses

2018-01-02 Thread Greg Kroah-Hartman
On Tue, Jan 02, 2018 at 07:34:30AM -0800, Joe Perches wrote: > On Sat, 2017-12-23 at 15:19 +0100, Greg Kroah-Hartman wrote: > > On Fri, Dec 22, 2017 at 12:02:47PM -0800, Joe Perches wrote: > > > There are many uses of the DEVICE_ATTR(var, perms, show, store) > > > declaration macro that could use

Re: [PATCH] scripts: Add device_attr_<rw|ro|wr>.pl scripts to convert DEVICE_ATTR uses

2018-01-02 Thread Joe Perches
On Sat, 2017-12-23 at 15:19 +0100, Greg Kroah-Hartman wrote: > On Fri, Dec 22, 2017 at 12:02:47PM -0800, Joe Perches wrote: > > There are many uses of the DEVICE_ATTR(var, perms, show, store) > > declaration macro that could use one of the convenience macros > > DEVICE_ATTR_RW, DEVICE_ATTR_RO, or

Re: [PATCH] scripts: Add device_attr_<rw|ro|wr>.pl scripts to convert DEVICE_ATTR uses

2017-12-23 Thread Joe Perches
On Sat, 2017-12-23 at 15:19 +0100, Greg Kroah-Hartman wrote: > On Fri, Dec 22, 2017 at 12:02:47PM -0800, Joe Perches wrote: > > There are many uses of the DEVICE_ATTR(var, perms, show, store) > > declaration macro that could use one of the convenience macros > > DEVICE_ATTR_RW, DEVICE_ATTR_RO, or

Re: [PATCH] scripts: Add device_attr_<rw|ro|wr>.pl scripts to convert DEVICE_ATTR uses

2017-12-23 Thread Greg Kroah-Hartman
On Fri, Dec 22, 2017 at 12:02:47PM -0800, Joe Perches wrote: > There are many uses of the DEVICE_ATTR(var, perms, show, store) > declaration macro that could use one of the convenience macros > DEVICE_ATTR_RW, DEVICE_ATTR_RO, or DEVICE_ATTR_WO. > > These scripts automate those conversions. > >

[PATCH] scripts: Add device_attr_<rw|ro|wr>.pl scripts to convert DEVICE_ATTR uses

2017-12-22 Thread Joe Perches
There are many uses of the DEVICE_ATTR(var, perms, show, store) declaration macro that could use one of the convenience macros DEVICE_ATTR_RW, DEVICE_ATTR_RO, or DEVICE_ATTR_WO. These scripts automate those conversions. Many declarations of functions used to show or store the values do not use