mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Valentin Ilie <valentin.ilie@gmail.com>
To: gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	Valentin Ilie <valentin.ilie@gmail.com>
Subject: [PATCH] Staging: telephony: phonedev: fixed checkpatch warnings
Date: Tue, 17 Apr 2012 13:27:21 +0300	[thread overview]
Message-ID: <1334658441-4805-1-git-send-email-valentin.ilie@gmail.com> (raw)

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


             reply	other threads:[~2012-04-17 10:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-17 10:27 Valentin Ilie [this message]
2012-04-18 23:57 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1334658441-4805-1-git-send-email-valentin.ilie@gmail.com \
    --to=valentin.ilie@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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