Synchronize with upstream version

Also ensure the driver still builds with the latest upstream kernel.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Guenter Roeck
2015-01-17 10:00:02 -08:00
parent 91230349d3
commit 034e27046c
3 changed files with 160 additions and 55 deletions

View File

@@ -11,6 +11,10 @@
#include <linux/version.h>
#ifndef clamp_val
#define clamp_val SENSORS_LIMIT
#endif
#ifndef request_muxed_region
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 28)
#define request_muxed_region(start,n,name) __request_region(&ioport_resource, (start), (n), (name))