Andrew F. Davis
939fc83229
w1: add helper macro module_w1_family
...
The helper macro module_w1_family can be used in module drivers that
only register a w1 driver in their module init functions. Add this
macro and use it in all applicable drivers.
Link: http://lkml.kernel.org/r/20160531204313.20979-2-afd@ti.com
Signed-off-by: Andrew F. Davis <afd@ti.com >
Acked-by: Evgeniy Polyakov <zbr@ioremap.net >
Cc: Greg KH <greg@kroah.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-08-02 19:35:39 -04:00
Greg Kroah-Hartman
fa33a65a9c
w1: slaves: w1_ds28e04: convert to use w1_family_ops.groups
...
This moves the sysfs file creation/removal to the w1 core by using the
.groups field, saving code in the slave driver.
Acked-by: Evgeniy Polyakov <zbr@ioremap.net >
Cc: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2013-08-22 11:05:43 -07:00
Alexander Stein
8d7bda5188
w1: add family based automatic module loading
...
This patch allows the 1-wire bus to autoload the corresponding module
for each slave being attached.
This works similar to bluetooth protocols.
Signed-off-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2013-06-03 14:09:14 -07:00
Markus Franke
fbf7f7b4e2
w1: Add 1-wire slave device driver for DS28E04-100
...
Signed-off-by: Markus Franke <franm@hrz.tu-chemnitz.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-06-13 16:47:10 -07:00