Skip to content

Commit

Permalink
hwmon: (lm95245) Use new hwmon registration API
Browse files Browse the repository at this point in the history
Simplify code and reduce code size by using the new hwmon
registration API.

Other changes:

- Convert to use regmap, and drop local caching. This avoids reading
  registers unnecessarily, and uses regmap for caching of non-volatile
  registers.
- Add support for temp2_max, temp2_max_alarm, temp2_max_hyst, and
  temp2_offset.
- Order include files alphabetically
- Drop FSF address
- Check errors from register read and write functions and report
  to userspace.
- Accept negative hysteresis values. While unlikely, a maximum limit
  _can_ be set to a value smaller than 31 degrees C, which makes negative
  hysteresis values possible.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Guenter Roeck committed Sep 9, 2016
1 parent 3e90462 commit c0a4b9e
Showing 1 changed file with 379 additions and 259 deletions.
Loading

0 comments on commit c0a4b9e

Please sign in to comment.