[patch pc87360 reroll 5/6] refactor SENSOR-DEVICE-ATTR for array init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Cromie wrote:

> refactor SENSOR_DEVICE_ATTR into declaration = initialization-expression
>    __SENSOR_DEVICE_ATTR() expands to init-expr
>
> this imitates  __ATTR in include/linux/device.h,
> but is needed cuz of new .index member ( otherwize __ATTR would suffice)
>

$ diffstat 05-pc87360-hwmon-sysfs-array-init.patch
 hwmon-sysfs.h |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)


Signed-off-by:  Jim Cromie <jcromie at divsol.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 05-pc87360-hwmon-sysfs-array-init.patch
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050803/b9f5942a/attachment.pl 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux