Provide vid_from_reg and vid_which_vrm if needed
Some oddball distributions do not have CONFIG_HWMON_VID enabled. Work around the problem by providing dummy functions if this is the case. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
12
compat.h
12
compat.h
@@ -11,6 +11,18 @@
|
|||||||
|
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
|
|
||||||
|
#if !defined (CONFIG_HWMON_VID) && !defined(CONFIG_HWMON_VID_MODULE)
|
||||||
|
int vid_from_reg(int val, u8 vrm)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
u8 vid_which_vrm(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef clamp_val
|
#ifndef clamp_val
|
||||||
#define clamp_val SENSORS_LIMIT
|
#define clamp_val SENSORS_LIMIT
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user