lkml.org 
[lkml]   [2013]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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 )=-


\
 
 \ /
  Last update: 2013-07-15 12:21    [W:0.090 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site