summaryrefslogtreecommitdiff
path: root/drivers/ptp/ptp_private.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-14 21:23:33 +0300
committerDavid S. Miller <davem@davemloft.net>2017-02-17 19:03:06 +0300
commitaf59e717d5ff9c8dbf9bcc581c0dfb3b2a9c9030 (patch)
tree5d4172db73ed280d54b477d056139de244d873d2 /drivers/ptp/ptp_private.h
parent6f7aa56bae6ff38727d5c8bf6ee7d4202b4e3865 (diff)
downloadlinux-af59e717d5ff9c8dbf9bcc581c0dfb3b2a9c9030.tar.xz
ptp: use is_visible method to hide unused attributes
Instead of creating selected attributes after the device is created (and after userspace potentially seen uevent), lets use attribute group is_visible() method to control which attributes are shown. This will allow us to create all attributes (except "pins" group, which will be taken care of later) before userspace gets notified about new ptp class device. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp/ptp_private.h')
0 files changed, 0 insertions, 0 deletions