]> git.baikalelectronics.ru Git - kernel.git/commit
rapidio: use is_visible() to hide switch-specific attributes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 15 Feb 2017 19:50:55 +0000 (11:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 06:10:49 +0000 (15:10 +0900)
commitcd600803ad7d0e9b81b1184e8ddefd7e27c5c499
tree290c00286d7b17b6bfb78e227f9b973e044435ab
parentd3fe4ad248de45bd66d2b36b62568cebd7ac1ef6
rapidio: use is_visible() to hide switch-specific attributes

Instead of creating switch-specific attributes by hand, implement
is_visible() method of attribute group and hide them when dealing with
non-switch devices. This will ensure that all attributes are created
together, before userspace gets notified of new device.

Also, remove rio-sysfs.c from list of files that are scanned when compiling
RapiodIO documentations as it no longer has any structured comments, and
leaving it in leads to warning when building docs.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/DocBook/rapidio.tmpl
drivers/rapidio/rio-sysfs.c
drivers/rapidio/rio.c
drivers/rapidio/rio.h