[Skiboot] [PATCH v2 1/2] IPMI: Move MAX_IPMI_SENSORS macro to ipmi.h

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Tue Jul 4 15:11:01 AEST 2017


..so that it can be used in other places as well.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 hw/ipmi/ipmi-sensor.c | 1 -
 include/ipmi.h        | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/ipmi/ipmi-sensor.c b/hw/ipmi/ipmi-sensor.c
index 9e6d5b9..9c4eb6b 100644
--- a/hw/ipmi/ipmi-sensor.c
+++ b/hw/ipmi/ipmi-sensor.c
@@ -26,7 +26,6 @@
 #define FW_PROGRESS_SENSOR_TYPE	0x0F
 #define BOOT_COUNT_SENSOR_TYPE	0xC3
 
-#define MAX_IPMI_SENSORS 255
 static int16_t sensors[MAX_IPMI_SENSORS];
 
 static bool sensors_present = false;
diff --git a/include/ipmi.h b/include/ipmi.h
index 35dee90..3389eaf 100644
--- a/include/ipmi.h
+++ b/include/ipmi.h
@@ -21,6 +21,8 @@
 #include <ccan/list/list.h>
 #include <stdbool.h>
 
+#define MAX_IPMI_SENSORS 255
+
 /*
  * IPMI codes as defined by the standard.
  */
-- 
2.9.3



More information about the Skiboot mailing list