How to correctly create device attributes in a platform driver?

2015-05-22 Thread Josef Holzmayr
Howdy! I’m currently working on a platform_driver, where I want an attribute_group to be in effect for every platforn_device that went through the corresponding .probe() call. Now http://kroah.com/log/blog/2013/06/26/how-to-create-a-sysfs-file-correctly/ suggests to set this in the struct

Separating a driver into dependent models

2015-05-11 Thread Josef Holzmayr
Hello, I’m currently looking into creating a driver for a family of fields interfaces that share a common hardware connector implementation. (http://www.anybus.com/products/abcc30.shtml). By the looks of it, I think it would make sense to separate the driver into a kind of „hardware interface“