Commit d34141eb authored by Vandana BN's avatar Vandana BN Committed by Greg Kroah-Hartman

Staging: kpc2000: kpc_dma: Resolve cast warning and use const for file_operation

This Patch resolves unnecessary cast warning and const file_operations
reported by checkpath.pl
WARNING: unnecessary cast may hide bugs
WARNING: struct file_operations should normally be const
Signed-off-by: default avatarVandana BN <bnvandana@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1c13ef4f
...@@ -418,7 +418,7 @@ long kpc_dma_ioctl(struct file *filp, unsigned int ioctl_num, unsigned long ioc ...@@ -418,7 +418,7 @@ long kpc_dma_ioctl(struct file *filp, unsigned int ioctl_num, unsigned long ioc
return -ENOTTY; return -ENOTTY;
} }
struct file_operations kpc_dma_fops = { const struct file_operations kpc_dma_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = kpc_dma_open, .open = kpc_dma_open,
.release = kpc_dma_close, .release = kpc_dma_close,
......
...@@ -57,7 +57,7 @@ struct dev_private_data { ...@@ -57,7 +57,7 @@ struct dev_private_data {
struct kpc_dma_device *kpc_dma_lookup_device(int minor); struct kpc_dma_device *kpc_dma_lookup_device(int minor);
extern struct file_operations kpc_dma_fops; extern const struct file_operations kpc_dma_fops;
#define ENG_CAP_PRESENT 0x00000001 #define ENG_CAP_PRESENT 0x00000001
#define ENG_CAP_DIRECTION 0x00000002 #define ENG_CAP_DIRECTION 0x00000002
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment