Messages in this thread | | | Date | Mon, 1 Nov 2010 16:57:01 +0000 | From | Alan Cox <> | Subject | Re: sysfs and power management |
| |
> I took a look to that. It seems that iio is more or less sysfs based. > There are ring buffers and event device which are chardev based > but still the data outside ring buffer and the control is sysfs based.
IIO is sysfs dependant, heavyweight and makes no sense for some of the sysfs based drivers. IIO is also staging based and Linus already threw out the last attempt to unify these drivers sanely with an ALS layer - which was smaller, cleaner and better !
> By getting open and close from sysfs would be nice from the driver > point of view. However, I understand that this is just overhead for > majority of the cases.
The alternative really is to end up with a parallel 'not quite sysfs' which is sysfs + open/close. My feeling is its cleaner to have a hook at the per device level (so we don't bloat the sysfs nodes at all) than have two copies of sysfs.
Alan
| |