Re: [PATCH 0/6] drivers: make device_attribute const

2017-08-21 Thread Bhumika Goyal
On Mon, Aug 21, 2017 at 5:58 PM, Rafael J. Wysocki wrote: > On Mon, Aug 21, 2017 at 1:43 PM, Bhumika Goyal wrote: >> Make these const. Done using Coccinelle. >> >> @match disable optional_qualifier@ >> identifier s; >> @@ >> static struct device_attribute s

Re: [PATCH 0/6] drivers: make device_attribute const

2017-08-21 Thread Bhumika Goyal
On Mon, Aug 21, 2017 at 5:58 PM, Rafael J. Wysocki wrote: > On Mon, Aug 21, 2017 at 1:43 PM, Bhumika Goyal wrote: >> Make these const. Done using Coccinelle. >> >> @match disable optional_qualifier@ >> identifier s; >> @@ >> static struct device_attribute s = {...}; >> >> @ref@ >> position p; >>

Re: [PATCH 0/6] drivers: make device_attribute const

2017-08-21 Thread Bhumika Goyal
On Mon, Aug 21, 2017 at 5:13 PM, Bhumika Goyal wrote: > Make these const. Done using Coccinelle. > > @match disable optional_qualifier@ > identifier s; > @@ > static struct device_attribute s = {...}; > > @ref@ > position p; > identifier match.s; > @@ > s@p > > @good1@ >

Re: [PATCH 0/6] drivers: make device_attribute const

2017-08-21 Thread Bhumika Goyal
On Mon, Aug 21, 2017 at 5:13 PM, Bhumika Goyal wrote: > Make these const. Done using Coccinelle. > > @match disable optional_qualifier@ > identifier s; > @@ > static struct device_attribute s = {...}; > > @ref@ > position p; > identifier match.s; > @@ > s@p > > @good1@ > identifier match.s; >

Re: [PATCH 0/6] drivers: make device_attribute const

2017-08-21 Thread Rafael J. Wysocki
On Mon, Aug 21, 2017 at 1:43 PM, Bhumika Goyal wrote: > Make these const. Done using Coccinelle. > > @match disable optional_qualifier@ > identifier s; > @@ > static struct device_attribute s = {...}; > > @ref@ > position p; > identifier match.s; > @@ > s@p > > @good1@ >

Re: [PATCH 0/6] drivers: make device_attribute const

2017-08-21 Thread Rafael J. Wysocki
On Mon, Aug 21, 2017 at 1:43 PM, Bhumika Goyal wrote: > Make these const. Done using Coccinelle. > > @match disable optional_qualifier@ > identifier s; > @@ > static struct device_attribute s = {...}; > > @ref@ > position p; > identifier match.s; > @@ > s@p > > @good1@ > identifier match.s; >

[PATCH 0/6] drivers: make device_attribute const

2017-08-21 Thread Bhumika Goyal
Make these const. Done using Coccinelle. @match disable optional_qualifier@ identifier s; @@ static struct device_attribute s = {...}; @ref@ position p; identifier match.s; @@ s@p @good1@ identifier match.s; expression e1; position ref.p; @@ device_remove_file(e1,@p,...) @good2@ identifier

[PATCH 0/6] drivers: make device_attribute const

2017-08-21 Thread Bhumika Goyal
Make these const. Done using Coccinelle. @match disable optional_qualifier@ identifier s; @@ static struct device_attribute s = {...}; @ref@ position p; identifier match.s; @@ s@p @good1@ identifier match.s; expression e1; position ref.p; @@ device_remove_file(e1,@p,...) @good2@ identifier