]> git.baikalelectronics.ru Git - kernel.git/commit
w1: new netlink commands, add/remove/list slaves
authorDavid Fries <David@Fries.net>
Thu, 16 Jan 2014 04:29:17 +0000 (22:29 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 23:40:17 +0000 (15:40 -0800)
commitae7a9a90a3d72e7582f4c1201c0c2c6ead6fe018
tree5dd0073cdfb48471130284bf3727223e3a100530
parent5057ff34413826dece6bd706a6cde5c505f6a008
w1: new netlink commands, add/remove/list slaves

Introduce new commands to add, remove, and list slave devices through
the netlink interface.  This can be useful to skip the search on a
static network.  They could previously only be added or removed
through automatic search or sysfs, and this allows a program to only
use netlink.

Only allocate memory when needed, so move kzalloc into w1_get_slaves
where it was used.

Signed-off-by: David Fries <David@Fries.net>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/w1.c
drivers/w1/w1.h
drivers/w1/w1_netlink.c
drivers/w1/w1_netlink.h