浏览代码

IPMI: make ipmi_poweroff_handler const

Make this const as it is only passed to a const argument of the function
ipmi_create_user.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Bhumika Goyal 8 年之前
父节点
当前提交
e6dd76a6e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/char/ipmi/ipmi_poweroff.c

+ 1 - 1
drivers/char/ipmi/ipmi_poweroff.c

@@ -133,7 +133,7 @@ static void receive_handler(struct ipmi_recv_msg *recv_msg, void *handler_data)
 		complete(comp);
 		complete(comp);
 }
 }
 
 
-static struct ipmi_user_hndl ipmi_poweroff_handler = {
+static const struct ipmi_user_hndl ipmi_poweroff_handler = {
 	.ipmi_recv_hndl = receive_handler
 	.ipmi_recv_hndl = receive_handler
 };
 };