diff options
author | Vandana BN <bnvandana@gmail.com> | 2019-05-13 19:13:27 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-20 07:40:40 +0200 |
commit | d34141ebd7e74cc4e68fe58b2d30eb5dcf1e7aeb (patch) | |
tree | 7d1229c18d9e295fe8bc53ce405125c65dd818d3 /drivers/staging/kpc2000/kpc_dma/fileops.c | |
parent | Staging: kpc2000: kpc_dma: Resolve warning to use __func__ insted of funtion name reported by checkpatch. (diff) | |
download | linux-dev-d34141ebd7e74cc4e68fe58b2d30eb5dcf1e7aeb.tar.xz linux-dev-d34141ebd7e74cc4e68fe58b2d30eb5dcf1e7aeb.zip |
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: Vandana BN <bnvandana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/kpc2000/kpc_dma/fileops.c')
-rw-r--r-- | drivers/staging/kpc2000/kpc_dma/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/kpc2000/kpc_dma/fileops.c b/drivers/staging/kpc2000/kpc_dma/fileops.c index a3d0232eb507..254fee593399 100644 --- a/drivers/staging/kpc2000/kpc_dma/fileops.c +++ b/drivers/staging/kpc2000/kpc_dma/fileops.c @@ -418,7 +418,7 @@ long kpc_dma_ioctl(struct file *filp, unsigned int ioctl_num, unsigned long ioc return -ENOTTY; } -struct file_operations kpc_dma_fops = { +const struct file_operations kpc_dma_fops = { .owner = THIS_MODULE, .open = kpc_dma_open, .release = kpc_dma_close, |