]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: Documentation: Add usage example for HWMON_CHANNEL_INFO
authorGuenter Roeck <linux@roeck-us.net>
Sun, 31 Mar 2019 17:22:24 +0000 (10:22 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commitedb49946b2fc896b791871db25045414bba88460
tree0f31dd0e0aa0332163716bfb95f9702eee2ca411
parent4e28be888572d227fd6ed872030892b3c9af9145
hwmon: Documentation: Add usage example for HWMON_CHANNEL_INFO

The new HWMON_CHANNEL_INFO macro simplifies the code, reduces the
likelihood of errors, and makes the code easier to read. Add a usage
example to help driver writers to actually use it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/hwmon-kernel-api.txt