Re: [RFC PATCH 0/2] Sysfs group create for empty groups.

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

 



On Wed, Aug 24, 2011 at 01:16:37PM +0100, Jonathan Cameron wrote:
> I've dropped lkml on this discussion seeing as it will now be all linux-iio
> stuff.
> 
> Anyhow, I've put together a patch set that does this on top of iio-blue.git.
> 
> Unfortunately it requires changes in a lot of drivers.
> 
> Basically you have to do iio_device_register last - after all ring and trigger
> registrations (previously it had to be first).
> 
> Has the nice side effect of removing the need for that nasty regdone trick
> that quite a lot of drivers use.
> 
> Sorry all but this will break almost all drivers currently out of tree.

That provides a good goal for people to get their driver into the tree
:)

> I wasn't too nasty to implement, though it does mean embedding attribute_group
> structures in struct iio_dev, struct iio_ring_buffer and struct iio_event_interface
> and dynamically allocating the struct attribute pointer arrays + remembering to
> free them.  That's all in the core though so as long as I haven't messed up shouldn't
> effect anyone.
> 
> + now we should get all the right notifications for file creation.
> 
> Will post patches once I've done all the driver reorderings as stated above.

Sounds good, thanks for letting me know.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux