All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} and changing function names at the same time
@ 2016-12-21  3:28 Guenter Roeck
  2016-12-21  7:30 ` Julia Lawall
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Guenter Roeck @ 2016-12-21  3:28 UTC (permalink / raw)
  To: cocci

Hi Julia,

I noticed your patch series to change DEVICE_ATTR() to DEVICE_ATTR_{RW,RO,WO}().
In hwmon, we have a lot of candidates for this change, but unfortunately the
function names do not typically match the _show/_store name convention.

Is there a way to tell coccinelle to change the function names to match this
convention ?

Background is that I want to change SENSOR_DEVICE_ATTR() and SENSOR_DEVICE_ATTR_2()
as well (after introducing _{RO,RW,WO} variants), but there the function names are
even more non-standard. The ability to change function names would help a lot for
automating this change.

Thanks,
Guenter

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2016-12-24  6:05 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-21  3:28 [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} and changing function names at the same time Guenter Roeck
2016-12-21  7:30 ` Julia Lawall
2016-12-21 13:07 ` Julia Lawall
2016-12-21 14:05 ` Julia Lawall
2016-12-21 16:29   ` Guenter Roeck
2016-12-21 19:39     ` Julia Lawall
2016-12-21 21:44       ` Guenter Roeck
2016-12-22 12:29         ` Converting DEVICE_ATTR to DEVICE_ATTR_{RO,RW,WO} " Julia Lawall
2016-12-22 12:29           ` [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} " Julia Lawall
2016-12-22 15:33           ` Converting DEVICE_ATTR to DEVICE_ATTR_{RO,RW,WO} " Guenter Roeck
2016-12-22 15:33             ` [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} " Guenter Roeck
2016-12-22 15:45             ` Converting DEVICE_ATTR to DEVICE_ATTR_{RO,RW,WO} " Julia Lawall
2016-12-22 15:45               ` [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} " Julia Lawall
2016-12-22 17:33               ` Converting DEVICE_ATTR to DEVICE_ATTR_{RO,RW,WO} " Greg KH
2016-12-22 17:33                 ` [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} " Greg KH
2016-12-22 18:19               ` Converting DEVICE_ATTR to DEVICE_ATTR_{RO,RW,WO} " Guenter Roeck
2016-12-22 18:19                 ` [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} " Guenter Roeck
2016-12-23 15:54                 ` Converting DEVICE_ATTR to DEVICE_ATTR_{RO,RW,WO} " Julia Lawall
2016-12-23 15:54                   ` [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} " Julia Lawall
2016-12-23 23:10                   ` Converting DEVICE_ATTR to DEVICE_ATTR_{RO,RW,WO} " Guenter Roeck
2016-12-23 23:10                     ` [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} " Guenter Roeck
2016-12-24  6:05                     ` Converting DEVICE_ATTR to DEVICE_ATTR_{RO,RW,WO} " Julia Lawall
2016-12-24  6:05                       ` [Cocci] Converting DEVICE_ATTR to DEVICE_ATTR_{RO, RW, WO} " Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.