]> git.baikalelectronics.ru Git - kernel.git/commit
docs: driver-model: device: Add ATTRIBUTE_GROUPS() example
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 3 Mar 2021 13:38:45 +0000 (14:38 +0100)
committerJonathan Corbet <corbet@lwn.net>
Tue, 9 Mar 2021 00:06:56 +0000 (17:06 -0700)
commit5bb44b48106adc5729f063e9ad736553c1f25046
tree9776ce2bd5ed6598faf5ca31701f887fe16efbf0
parentea742b3dfda450afe6bcb379b7b13fefec077a3a
docs: driver-model: device: Add ATTRIBUTE_GROUPS() example

Add a paragraph about the ATTRIBUTE_GROUPS() helper macro, and use it in
the example.  Retain the old description, as it is still useful in case
of multiple groups.  Change the names of the group(s) structures, to
match the ATTRIBUTE_GROUPS() macro.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210303133845.3939403-3-geert+renesas@glider.be
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/driver-api/driver-model/device.rst