diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2016-02-07 16:35:23 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 17:47:20 -0500 |
commit | f23e2cc4bb1d8bbbe02dcd3539ed531a3f40277c (patch) | |
tree | 38ac16aac121d4b1bb444b284ea08786301cf968 /drivers/misc/mei/main.c | |
parent | d0df8dfb8582f50053bde6a771262571daedf5d0 (diff) |
mei: constify struct file pointer
The struct file file pointer is used as an opaque handle to for a
connected client, for this part the pointer should be immutable and
should be set to count.
Reviewed-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r-- | drivers/misc/mei/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 5f2b63460d88..03741c456ee4 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c | |||
@@ -435,7 +435,7 @@ end: | |||
435 | * | 435 | * |
436 | * Return: 0 on success , <0 on error | 436 | * Return: 0 on success , <0 on error |
437 | */ | 437 | */ |
438 | static int mei_ioctl_client_notify_request(struct file *file, u32 request) | 438 | static int mei_ioctl_client_notify_request(const struct file *file, u32 request) |
439 | { | 439 | { |
440 | struct mei_cl *cl = file->private_data; | 440 | struct mei_cl *cl = file->private_data; |
441 | 441 | ||
@@ -450,7 +450,7 @@ static int mei_ioctl_client_notify_request(struct file *file, u32 request) | |||
450 | * | 450 | * |
451 | * Return: 0 on success , <0 on error | 451 | * Return: 0 on success , <0 on error |
452 | */ | 452 | */ |
453 | static int mei_ioctl_client_notify_get(struct file *file, u32 *notify_get) | 453 | static int mei_ioctl_client_notify_get(const struct file *file, u32 *notify_get) |
454 | { | 454 | { |
455 | struct mei_cl *cl = file->private_data; | 455 | struct mei_cl *cl = file->private_data; |
456 | bool notify_ev; | 456 | bool notify_ev; |