Can I use DEVICE_INT_ATTR() so that probing and removing sysfs enteries happens automatically?

2014-07-07 Thread Jamie Risk
What is the proper way to use the 'DEVICE_(INT|ULONG|BOOL)_ATTR()' macros with a platform driver? Or, am I best using per attribute pairs of show/store functions? If I code my own 'show()' and 'store()' functions and use the 'DEVICE_ATTR()' macros things work happily with an assignment of 'struct

Can I use DEVICE_INT_ATTR() so that probing and removing sysfs enteries happens automatically?

2014-07-07 Thread Jamie Risk
What is the proper way to use the 'DEVICE_(INT|ULONG|BOOL)_ATTR()' macros with a platform driver? Or, am I best using per attribute pairs of show/store functions? If I code my own 'show()' and 'store()' functions and use the 'DEVICE_ATTR()' macros things work happily with an assignment of 'struct