From: Jesper Juhl <jesper.juhl@gmail.com>
To: Mark Gross <mgross@linux.intel.com>
Cc: Marcelo Tosatti <marcelo.tosatti@cyclades.com>,
Linus Torvalds <torvalds@osdl.org>,
linux-kernel@vger.kernel.org
Subject: Re: Telecom Clock driver for MPCBL0010 ATCA compute blade.
Date: Tue, 30 Aug 2005 23:19:43 +0200 [thread overview]
Message-ID: <9a87484905083014197ecb835a@mail.gmail.com> (raw)
In-Reply-To: <200508301336.16112.mgross@linux.intel.com>
On 8/30/05, Mark Gross <mgross@linux.intel.com> wrote:
> On Tuesday 30 August 2005 13:31, Mark Gross wrote:
> > On Tuesday 30 August 2005 12:16, Marcelo Tosatti wrote:
> > >
> > > Mark,
> > >
> > > Please fix identation accordingly to CodingStyle and repost, it
> > > looks quite ugly at the moment.
> > >
> > Sorry about that.
> >
>
> My email client is f-ing with me. See attached.
>
ok, a few small comments :
+/* sysFS interface definition:
Isn't it just called "sysfs" without the caps?
+Uppon loading the driver will create a sysfs directory under class/misc/tlclk.
s/Uppon/Upon/
+This directory exports the following interfaces. There opperation is
documented
Line is longer than 80 chars - there are a few more such long lines,
not going to point them all out, just one example. Ohh, and
"opperation" should be "operation".
+All sysfs interaces are integers in hex format, i.e echo 99 > refalign
s/interaces/interfaces/
+#if CONFIG_DEBUG_KERNEL
I believe this should be "#ifdef CONFIG_DEBUG_KERNEL" or "#if
defined(CONFIG_DEBUG_KERNEL)" or you'll run afoul of the -Wundef
crowd.
+ int ret_val = 0;
There seems to be a preference for the name "retval" in the kernel source.
+ val = (unsigned char)arg;
That cast looks pointless.
+tlclk_read(struct file * filp, char __user * buf, size_t count, loff_t * f_pos)
tlclk_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
"*" next to the variable name is generally the preffered coding style
(several cases of this, only pointing out one).
+ val = (unsigned char)tmp;
pointless cast. Do take a look at all your casts and check if they are
really needed and remove them if not.
+ * This is also the probe opperation to avoid driver use on
s/opperation/operation/
+/* switchover_timer.function = switchover_timeout; */
+/* switchover_timer.data = 0; */
Why submit a driver with commented out code? If this is not supposed
to be there, then just remove it. If it needs to be added later, then
submit a patch later to add it.
Some people may disagree with me here, but that's my oppinion.
+ out3:
labels belong at column 0 (zero).
--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
next prev parent reply other threads:[~2005-08-30 21:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-30 18:59 Telecom Clock driver for MPCBL0010 ATCA compute blade Mark Gross
2005-08-30 19:16 ` Marcelo Tosatti
2005-08-30 20:31 ` Mark Gross
2005-08-30 20:36 ` Mark Gross
2005-08-30 21:19 ` Jesper Juhl [this message]
2005-08-30 22:19 ` Mark Gross
2005-08-30 22:31 ` Jesper Juhl
2005-08-31 15:56 ` Mark Gross
2005-08-31 19:11 ` Pavel Machek
2005-09-02 15:01 ` Mark Gross
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=9a87484905083014197ecb835a@mail.gmail.com \
--to=jesper.juhl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
--cc=mgross@linux.intel.com \
--cc=torvalds@osdl.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