linux/Documentation/driver-api/driver-model
Geert Uytterhoeven d944f0b115 docs: driver-model: device: Add DEVICE_ATTR_{RO,RW} examples
bus.rst, driver.rst, and hwmon-kernel-api.rst refer to the
DEVICE_ATTR_* macros for devices, but device.rst does not mention them.

Add a paragraph about these helper macros, and use them in the examples.
Retain the old description, as it is still useful for less common values
of mode.  Change the names of the example "show" and "store" methods, to
match the expectations of the DEVICE_ATTR_* macros.

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-2-geert+renesas@glider.be
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2021-03-08 17:06:56 -07:00
..
binding.rst
bus.rst
design-patterns.rst
device.rst docs: driver-model: device: Add DEVICE_ATTR_{RO,RW} examples 2021-03-08 17:06:56 -07:00
devres.rst rtc: rework rtc_register_device() resource management 2020-11-19 12:50:12 +01:00
driver.rst docs: driver-model: remove a duplicated markup at driver.rst 2020-06-26 10:01:24 -06:00
index.rst docs: driver-model: Remove obsolete device class documentation 2021-03-06 17:36:51 -07:00
overview.rst docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
platform.rst Documentation/driver-api: driver-model/platform: drop doubled word 2020-07-10 14:35:37 +02:00
porting.rst