Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 210af2a5 authored by Corey Minyard's avatar Corey Minyard
Browse files

ipmi: make ipmi_usr_hndl const



It's only function pointers.

Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 08f6cd01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ static int ipmi_fasync(int fd, struct file *file, int on)
	return (result);
}

static struct ipmi_user_hndl ipmi_hndlrs =
static const struct ipmi_user_hndl ipmi_hndlrs =
{
	.ipmi_recv_hndl	= file_receive_handler,
};
+2 −2
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ struct ipmi_user {
	struct kref refcount;

	/* The upper layer that handles receive messages. */
	struct ipmi_user_hndl *handler;
	const struct ipmi_user_hndl *handler;
	void             *handler_data;

	/* The interface this user is bound to. */
@@ -919,7 +919,7 @@ static int intf_err_seq(ipmi_smi_t intf,


int ipmi_create_user(unsigned int          if_num,
		     struct ipmi_user_hndl *handler,
		     const struct ipmi_user_hndl *handler,
		     void                  *handler_data,
		     ipmi_user_t           *user)
{
+1 −1
Original line number Diff line number Diff line
@@ -985,7 +985,7 @@ static void ipmi_wdog_pretimeout_handler(void *handler_data)
	pretimeout_since_last_heartbeat = 1;
}

static struct ipmi_user_hndl ipmi_hndlrs = {
static const struct ipmi_user_hndl ipmi_hndlrs = {
	.ipmi_recv_hndl           = ipmi_wdog_msg_handler,
	.ipmi_watchdog_pretimeout = ipmi_wdog_pretimeout_handler
};
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ struct ipmi_user_hndl {

/* Create a new user of the IPMI layer on the given interface number. */
int ipmi_create_user(unsigned int          if_num,
		     struct ipmi_user_hndl *handler,
		     const struct ipmi_user_hndl *handler,
		     void                  *handler_data,
		     ipmi_user_t           *user);