]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: create "pins" together with the rest of attributes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 14 Feb 2017 18:23:34 +0000 (10:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 16:03:06 +0000 (11:03 -0500)
commitcc126d32b8bf7185ceafdf5deeb3470979373626
treea2e0e1be3db1c252076604b9aeb82617c219d349
parentd767b72db948a9de13928f48f82ac7104ff922b8
ptp: create "pins" together with the rest of attributes

Let's switch to using device_create_with_groups(), which will allow us to
create "pins" attribute group together with the rest of ptp device
attributes, and before userspace gets notified about ptp device creation.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_clock.c
drivers/ptp/ptp_private.h
drivers/ptp/ptp_sysfs.c