Messages in this thread | | | Date | Mon, 15 Jul 2013 10:41:52 +0100 | From | Ian Abbott <> | Subject | Re: [PATCH v3 01/10] Driver core and sysfs changes for attribute groups |
| |
On 2013-07-15 00:05, Greg Kroah-Hartman wrote: > Ian, I didn't add a DEVICE_PATTR() macro yet, that can come later. I > considered it, but that would also mean a BUS_PATTR() and the like, which I > guess works, but I hate even a _hint_ of "Hungarian" notation, which this > implies. > > Anyone else have a better name for this macro: > #define DEVICE_PATTR(_name) &dev_attr_##_name.attr > that they can think of? It will cut down on the typing done for > attribute lists.
DEVICE_ATTR_P or DEV_ATTR_P to save typing. Or would that be confused with the P convention[1]? If so, DEVICE_ATTR_PTR or DEV_ATTR_PTR could be used.
[1] see Jargon File.
-- -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
| |