aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-28 14:08:15 -0400
committerCorey Minyard <cminyard@mvista.com>2017-09-27 17:03:45 -0400
commite6dd76a6e9c20a6cc63406061f216d4eb7c9ae7b (patch)
treece163e3425af4012798f8e79cb8e0b4efc5b63ed
parent1c9f98d1bfbd0696442f97fa7d43a727e1e16568 (diff)
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>
-rw-r--r--drivers/char/ipmi/ipmi_poweroff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c
index 9f2e3be2c5b8..cd0f41fd4a51 100644
--- a/drivers/char/ipmi/ipmi_poweroff.c
+++ b/drivers/char/ipmi/ipmi_poweroff.c
@@ -133,7 +133,7 @@ static void receive_handler(struct ipmi_recv_msg *recv_msg, void *handler_data)
133 complete(comp); 133 complete(comp);
134} 134}
135 135
136static struct ipmi_user_hndl ipmi_poweroff_handler = { 136static const struct ipmi_user_hndl ipmi_poweroff_handler = {
137 .ipmi_recv_hndl = receive_handler 137 .ipmi_recv_hndl = receive_handler
138}; 138};
139 139