From 905a3a095d49ef9f6eea5ec1b0bc21e3c6901b9e Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Tue, 8 May 2018 14:25:20 -0700 Subject: [PATCH] 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 --- compat.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/compat.h b/compat.h index 865dcc5..c8ac0de 100644 --- a/compat.h +++ b/compat.h @@ -11,6 +11,18 @@ #include +#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 #define clamp_val SENSORS_LIMIT #endif -- 2.39.2