From: H Hartley Sweeten <hartleys@visionengravers.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: <devel@driverdev.osuosl.org>, <abbotti@mev.co.uk>,
<fmhess@users.sourceforge.net>, <gregkh@linuxfoundation.org>
Subject: [PATCH 07/31] staging: comedi: ni_daq_700: remove some useless comments
Date: Fri, 22 Jun 2012 16:16:41 -0700 [thread overview]
Message-ID: <201206221616.41849.hartleys@visionengravers.com> (raw)
Remove some useless comments and whitespace.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Greg Kroah-hartman <gregkh@linuxfoundation.org>
---
drivers/staging/comedi/drivers/ni_daq_700.c | 19 ++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)
diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c
index 30eeb9d..1059297 100644
--- a/drivers/staging/comedi/drivers/ni_daq_700.c
+++ b/drivers/staging/comedi/drivers/ni_daq_700.c
@@ -111,8 +111,6 @@ static struct comedi_driver driver_dio700 = {
.offset = sizeof(struct dio700_board),
};
-/* the real driver routines */
-
#define _700_SIZE 8
#define _700_DATA 0
@@ -342,7 +340,7 @@ static int dio700_cs_attach(struct pcmcia_device *link)
dio700_config(link);
return 0;
-} /* dio700_cs_attach */
+}
static void dio700_cs_detach(struct pcmcia_device *link)
{
@@ -392,14 +390,14 @@ failed:
printk(KERN_INFO "ni_daq_700 cs failed");
dio700_release(link);
-} /* dio700_config */
+}
static void dio700_release(struct pcmcia_device *link)
{
dev_dbg(&link->dev, "dio700_release\n");
pcmcia_disable_device(link);
-} /* dio700_release */
+}
static int dio700_cs_suspend(struct pcmcia_device *link)
{
@@ -408,7 +406,7 @@ static int dio700_cs_suspend(struct pcmcia_device *link)
/* Mark the device as stopped, to block IO until later */
local->stop = 1;
return 0;
-} /* dio700_cs_suspend */
+}
static int dio700_cs_resume(struct pcmcia_device *link)
{
@@ -416,17 +414,12 @@ static int dio700_cs_resume(struct pcmcia_device *link)
local->stop = 0;
return 0;
-} /* dio700_cs_resume */
-
-/*====================================================================*/
+}
static const struct pcmcia_device_id dio700_cs_ids[] = {
- /* N.B. These IDs should match those in dio700_boards */
- PCMCIA_DEVICE_MANF_CARD(0x010b, 0x4743), /* daqcard-700 */
+ PCMCIA_DEVICE_MANF_CARD(0x010b, 0x4743),
PCMCIA_DEVICE_NULL
};
-
-
MODULE_DEVICE_TABLE(pcmcia, dio700_cs_ids);
static struct pcmcia_driver dio700_cs_driver = {
--
1.7.11
reply other threads:[~2012-06-22 23:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201206221616.41849.hartleys@visionengravers.com \
--to=hartleys@visionengravers.com \
--cc=abbotti@mev.co.uk \
--cc=devel@driverdev.osuosl.org \
--cc=fmhess@users.sourceforge.net \
--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