acpi:ipmi: Make IPMI user handler const
authorCorey Minyard <cminyard@mvista.com>
Thu, 5 Jan 2017 16:52:54 +0000 (10:52 -0600)
committerCorey Minyard <cminyard@mvista.com>
Thu, 9 Feb 2017 15:10:05 +0000 (09:10 -0600)
ipmi_create_user() now takes the user handlers as const, make
it const in the ACPI IPMI code.

Cc: linux-acpi@vger.kernel.org
Cc: Zhao Yakui <yakui.zhao@intel.com>
Cc: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Acked-by: Rafael J. Wysocki <rjw@rjwysocki.net>
drivers/acpi/acpi_ipmi.c

index f77956c..747c2ba 100644 (file)
@@ -56,7 +56,7 @@ struct acpi_ipmi_device {
 struct ipmi_driver_data {
        struct list_head ipmi_devices;
        struct ipmi_smi_watcher bmc_events;
-       struct ipmi_user_hndl ipmi_hndlrs;
+       const struct ipmi_user_hndl ipmi_hndlrs;
        struct mutex ipmi_lock;
 
        /*