Declare dummy vid functions if needed
Some kernel configurations may have CONFIG_HWMON_VID disabled. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
17
compat.h
17
compat.h
@@ -48,4 +48,21 @@ static inline int strict_strtol(const char *cp, unsigned int base, long *res)
|
|||||||
#define kstrtol strict_strtol
|
#define kstrtol strict_strtol
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Some kernel configurations may have CONFIG_HWMON_VID disabled.
|
||||||
|
* We still have the functios declared as external, so we can not use
|
||||||
|
* static inline.
|
||||||
|
*/
|
||||||
|
#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
|
||||||
|
|
||||||
#endif /* COMPAT_H */
|
#endif /* COMPAT_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user