mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
d0df8dfb85
commit
f23e2cc4bb
5 changed files with 22 additions and 18 deletions
|
@ -435,7 +435,7 @@ end:
|
|||
*
|
||||
* Return: 0 on success , <0 on error
|
||||
*/
|
||||
static int mei_ioctl_client_notify_request(struct file *file, u32 request)
|
||||
static int mei_ioctl_client_notify_request(const struct file *file, u32 request)
|
||||
{
|
||||
struct mei_cl *cl = file->private_data;
|
||||
|
||||
|
@ -450,7 +450,7 @@ static int mei_ioctl_client_notify_request(struct file *file, u32 request)
|
|||
*
|
||||
* Return: 0 on success , <0 on error
|
||||
*/
|
||||
static int mei_ioctl_client_notify_get(struct file *file, u32 *notify_get)
|
||||
static int mei_ioctl_client_notify_get(const struct file *file, u32 *notify_get)
|
||||
{
|
||||
struct mei_cl *cl = file->private_data;
|
||||
bool notify_ev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue