README: Add comment about ASUS desktop boards

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
nct6775: Monitor additional temperature registers

The number of SMIOVT registers on NCT6779 and NCT6791 is limited to 2.
As result, the driver may not report some of the temperatures used for fan
control. Fortunately, the chip has registers to monitor those temperatures.
Add them to the list of temperatures to report.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
nct6775: NCT6791 supports weight control only for CPUFAN

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Re-enable logical device mapping for NCT6791 after restore

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Add support for hibernate

Hibernate uses its own set of callbacks, even if they are the same as
suspen/resume. Add support for it. Also synchronize NCT6791 suspend/resume
fix with upstream code.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
sync with latest upstream version

Use devm_hwmon_device_register_with_groups() and sysfs_create_groups() if
possible.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Add known problem about fan control settings after resume to README file

Fan control settings are not restored in a resume cycle.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Add declaration of PTR_ERR_OR_ZERO for kernels prior to 3.12

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Declare vid_from_reg and vid_which_vrm locally if HWMON_VID is not enabled

This prevents compilation errors if HWMON_VID is not enabled in the system
configuration.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
README: Update to reflect that the driver is available upstream

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
compat.h: Don't inlude i2C compatibility code

This is not an I2C driver, so don't include any I2C compatibility code.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
make define release_region conditional

release_region is defined on RHEL6 although request_muxed_region isn't so generates a warning:

warning: "release_region" redefined

Making it conditional eliminates the warning.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
compat.h:  define pr_warn and pr_warn_ratelimited macros if not already defined

pr_warn and pr_warn_ratelimited not added until kernel 2.6.35
Merge pull request #18 from karlvoigtland/master

compat.h:  define pr_warn and pr_warn_ratelimited macros if not already ...