mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: "Derek Cheung" <derek.cheung@sympatico.ca>
Cc: greg@kroah.com, akpm@osdl.org, Linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kernel 2.6.11.6 -  I2C adaptor for ColdFire 5282 CPU
Date: Sun, 10 Apr 2005 20:32:44 -0700	[thread overview]
Message-ID: <20050410203244.511ae8c9.rddunlap@osdl.org> (raw)
In-Reply-To: <000801c53ded$04428920$1501a8c0@Mainframe>

On Sun, 10 Apr 2005 12:47:42 -0400 Derek Cheung wrote:

| Enclosed please find the updated patch that incorporates changes for all
| the comments I received.

(yes, almost all)

| The volatile declaration in the m528xsim.h is needed because the
| declaration refers to the ColdFire 5282 register mapping. The volatile
| declaration is actually not needed in my I2C driver but someone may
| include the m528xsim.h file in his/her applications and we need to force
| the compiler not to do any optimization on the register mapping.

Did you also send it to the I2C mailing list like Greg asked you to do?

More comments:

diffstat summary, like so, would be nice:
 drivers/i2c/busses/Kconfig       |   10
 drivers/i2c/busses/Makefile      |    2
 drivers/i2c/busses/i2c-mcf5282.c |  419 +++++++++++++++++++++++++++++++++++++++
 drivers/i2c/busses/i2c-mcf5282.h |   46 ++++
 include/asm-m68knommu/m528xsim.h |   42 +++
 5 files changed, 519 insertions(+)


+	int i, len, rc = 0;
+        u8 rxData, tempRxData[2];
Use tabs, not spaces.  Happens other places too.

+        switch (size) {
+                case I2C_SMBUS_QUICK:
Don't need to indent case statements... (repeating myself).

+                case I2C_SMBUS_PROC_CALL:
+			/* dev_info(&adap->dev, "size = 
+				I2C_SMBUS_PROC_CALL \n"); */
No break needed here ?
+        	case I2C_SMBUS_WORD_DATA:

+	if (rc < 0) 
+		return -1;
+	else
+        	return 0;
There are several of these.  Why not just return rc ?


Kconfig says that the module (if selected) will be called
i2c-mcf5282lite, but Makefile builds
+obj-$(CONFIG_I2C_MCF5282LITE)   += i2c-mcf5282.o
(i.e., no "lite").


---
~Randy

  parent reply	other threads:[~2005-04-11  3:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050405044836.GA17336@kroah.com>
2005-04-06  2:18 ` Derek Cheung
2005-04-06  2:21   ` Andrew Morton
2005-04-06  2:33     ` Derek Cheung
2005-04-06  3:10       ` Randy.Dunlap
2005-04-07 22:37         ` Matt Mackall
2005-04-07 22:42           ` [PATCH] Add dontdiff file Randy.Dunlap
2005-04-06  3:43       ` [PATCH] kernel 2.6.11.6 - I2C adaptor for ColdFire 5282 CPU Randy.Dunlap
2005-04-06 14:25         ` Greg KH
2005-04-10 16:47         ` Derek Cheung
2005-04-10 23:54           ` Andrew Morton
2005-04-11  3:32           ` Randy.Dunlap [this message]
2005-04-11 20:03           ` Greg KH
2005-04-14  1:12             ` Derek Cheung
2005-04-17 22:03               ` Greg KH
2005-04-18 21:10               ` Jean Delvare
2005-04-06  3:27   ` 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=20050410203244.511ae8c9.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=Linux-kernel@vger.kernel.org \
    --cc=akpm@osdl.org \
    --cc=derek.cheung@sympatico.ca \
    --cc=greg@kroah.com \
    /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

all inboxes | Powered by JetHome®