summaryrefslogtreecommitdiff
path: root/include/linux/ipmi.h
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2014-10-10 17:47:04 -0500
committerCorey Minyard <cminyard@mvista.com>2014-12-11 15:04:06 -0600
commita11213fc36d29d42ab00d400796e98fc770c93b9 (patch)
tree6050f628eb1bcb26829674a6a5f06b66a0677b9e /include/linux/ipmi.h
parentceb51ca8e7916da5d728d386b3896433a435d763 (diff)
downloadlwn-a11213fc36d29d42ab00d400796e98fc770c93b9.tar.gz
lwn-a11213fc36d29d42ab00d400796e98fc770c93b9.zip
ipmi: Use the proper type for acpi_handle
Minor cleanup, don't use a void pointer, use the right type. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/linux/ipmi.h')
-rw-r--r--include/linux/ipmi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h
index 47b8f8ddb2b1..838dbfa3c331 100644
--- a/include/linux/ipmi.h
+++ b/include/linux/ipmi.h
@@ -37,6 +37,7 @@
#include <linux/list.h>
#include <linux/proc_fs.h>
+#include <linux/acpi.h> /* For acpi_handle */
struct module;
struct device;
@@ -281,13 +282,15 @@ enum ipmi_addr_src {
const char *ipmi_addr_src_to_str(enum ipmi_addr_src src);
union ipmi_smi_info_union {
+#ifdef CONFIG_ACPI
/*
* the acpi_info element is defined for the SI_ACPI
* address type
*/
struct {
- void *acpi_handle;
+ acpi_handle acpi_handle;
} acpi_info;
+#endif
};
struct ipmi_smi_info {