diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-14 21:23:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-20 09:15:32 +0300 |
commit | 6347abb820bbbca94074100dbd21f4cbc54d45b2 (patch) | |
tree | ac141372c35f91f6e79b489478d7bbe20a4e1747 /drivers/ptp/ptp_clock.c | |
parent | bca173248fed7477fa607afe0c2efde61f00dbd2 (diff) | |
download | linux-6347abb820bbbca94074100dbd21f4cbc54d45b2.tar.xz |
ptp: use is_visible method to hide unused attributes
commit af59e717d5ff9c8dbf9bcc581c0dfb3b2a9c9030 upstream.
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>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/ptp/ptp_clock.c')
0 files changed, 0 insertions, 0 deletions