mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Staging: telephony: phonedev: fixed checkpatch warnings
@ 2012-04-17 10:27 Valentin Ilie
  2012-04-18 23:57 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Valentin Ilie @ 2012-04-17 10:27 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel, Valentin Ilie

Fixed checkpatch warnings

Signed-off-by: Valentin Ilie <valentin.ilie@gmail.com>
---
 drivers/staging/telephony/phonedev.c |   23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

diff --git a/drivers/staging/telephony/phonedev.c b/drivers/staging/telephony/phonedev.c
index 1dd0b67..478aa46 100644
--- a/drivers/staging/telephony/phonedev.c
+++ b/drivers/staging/telephony/phonedev.c
@@ -23,8 +23,7 @@
 #include <linux/errno.h>
 #include <linux/phonedev.h>
 #include <linux/init.h>
-#include <asm/uaccess.h>
-
+#include <linux/uaccess.h>
 #include <linux/kmod.h>
 #include <linux/sem.h>
 #include <linux/mutex.h>
@@ -32,7 +31,7 @@
 #define PHONE_NUM_DEVICES	256
 
 /*
- *    Active devices 
+ *    Active devices
  */
 
 static struct phone_device *phone_device[PHONE_NUM_DEVICES];
@@ -61,9 +60,8 @@ static int phone_open(struct inode *inode, struct file *file)
 		request_module("char-major-%d-%d", PHONE_MAJOR, minor);
 		mutex_lock(&phone_lock);
 		p = phone_device[minor];
-		if (p == NULL || (new_fops = fops_get(p->f_op)) == NULL)
-		{
-			err=-ENODEV;
+		if (p == NULL || (new_fops = fops_get(p->f_op)) == NULL) {
+			err = -ENODEV;
 			goto end;
 		}
 	}
@@ -98,7 +96,7 @@ int phone_register_device(struct phone_device *p, int unit)
 		base = unit;
 		end = unit + 1;  /* enter the loop at least one time */
 	}
-	
+
 	mutex_lock(&phone_lock);
 	for (i = base; i < end; i++) {
 		if (phone_device[i] == NULL) {
@@ -111,6 +109,7 @@ int phone_register_device(struct phone_device *p, int unit)
 	mutex_unlock(&phone_lock);
 	return -ENFILE;
 }
+EXPORT_SYMBOL(phone_register_device);
 
 /*
  *    Unregister an unused Telephony for linux device
@@ -123,10 +122,9 @@ void phone_unregister_device(struct phone_device *pfd)
 		phone_device[pfd->minor] = NULL;
 	mutex_unlock(&phone_lock);
 }
+EXPORT_SYMBOL(phone_unregister_device);
 
-
-static const struct file_operations phone_fops =
-{
+static const struct file_operations phone_fops = {
 	.owner		= THIS_MODULE,
 	.open		= phone_open,
 	.llseek		= noop_llseek,
@@ -135,7 +133,7 @@ static const struct file_operations phone_fops =
 /*
  *	Board init functions
  */
- 
+
 
 /*
  *    Initialise Telephony for linux
@@ -161,6 +159,3 @@ module_init(telephony_init);
 module_exit(telephony_exit);
 
 MODULE_LICENSE("GPL");
-
-EXPORT_SYMBOL(phone_register_device);
-EXPORT_SYMBOL(phone_unregister_device);
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-18 23:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-17 10:27 [PATCH] Staging: telephony: phonedev: fixed checkpatch warnings Valentin Ilie
2012-04-18 23:57 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome