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)
commit6bf2db4621fc1ac7a00bb7b770462211a5b7fdf9
tree0f31dd0e0aa0332163716bfb95f9702eee2ca411
parent4ec1d234a96659b881d9e2070978ec0a25668d44
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