summaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm
diff options
context:
space:
mode:
authorJavier Martinez Canillas <martinez.javier@gmail.com>2011-02-12 04:38:25 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 13:21:56 -0800
commit78acd58746b513c062b3dafd5b563401bc9e9d47 (patch)
tree59e98c0cd9ed574ee30920aed4a5c99d80ef6f90 /drivers/staging/bcm
parent7227ba06479f981f5cf9977a7eeb3a20d30dc501 (diff)
downloadlinux-stable-78acd58746b513c062b3dafd5b563401bc9e9d47.tar.gz
linux-stable-78acd58746b513c062b3dafd5b563401bc9e9d47.tar.bz2
linux-stable-78acd58746b513c062b3dafd5b563401bc9e9d47.zip
Staging: bcm: Bcmchar: Fix some checkpatch errors
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/bcm')
-rw-r--r--drivers/staging/bcm/Bcmchar.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c
index 2064c2e901cc..3d9055aec97c 100644
--- a/drivers/staging/bcm/Bcmchar.c
+++ b/drivers/staging/bcm/Bcmchar.c
@@ -2100,7 +2100,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
}
-static struct file_operations bcm_fops = {
+static const struct file_operations bcm_fops = {
.owner = THIS_MODULE,
.open = bcm_char_open,
.release = bcm_char_release,
@@ -2114,32 +2114,32 @@ extern struct class *bcm_class;
int register_control_device_interface(PMINI_ADAPTER Adapter)
{
- if(Adapter->major>0)
+ if (Adapter->major > 0)
return Adapter->major;
Adapter->major = register_chrdev(0, DEV_NAME, &bcm_fops);
- if(Adapter->major < 0) {
+ if (Adapter->major < 0) {
pr_err(DRV_NAME ": could not created character device\n");
return Adapter->major;
}
- Adapter->pstCreatedClassDevice = device_create (bcm_class, NULL,
- MKDEV(Adapter->major, 0), Adapter,
- DEV_NAME);
+ Adapter->pstCreatedClassDevice = device_create(bcm_class, NULL,
+ MKDEV(Adapter->major, 0),
+ Adapter, DEV_NAME);
- if(IS_ERR(Adapter->pstCreatedClassDevice)) {
+ if (IS_ERR(Adapter->pstCreatedClassDevice)) {
pr_err(DRV_NAME ": class device create failed\n");
unregister_chrdev(Adapter->major, DEV_NAME);
return PTR_ERR(Adapter->pstCreatedClassDevice);
}
-
+
return 0;
}
void unregister_control_device_interface(PMINI_ADAPTER Adapter)
{
- if(Adapter->major > 0) {
- device_destroy (bcm_class, MKDEV(Adapter->major, 0));
+ if (Adapter->major > 0) {
+ device_destroy(bcm_class, MKDEV(Adapter->major, 0));
unregister_chrdev(Adapter->major, DEV_NAME);
}
}