From: ben-i2c@fluff.org (Ben Dooks)
To: lm-sensors@vger.kernel.org
Subject: S3C2410 I2C driver
Date: Thu, 19 May 2005 06:25:19 +0000 [thread overview]
Message-ID: <20041014095439.GA32248@home.fluff.org> (raw)
In-Reply-To: <20041008130842.GK12218@home.fluff.org>
On Wed, Oct 13, 2004 at 10:25:39AM -0700, Greg KH wrote:
> On Tue, Oct 12, 2004 at 11:18:22PM +0100, Ben Dooks wrote:
> > +
> > +static int debug_info;
> > +static int debug_norm = 1;
>
> Why not make these module_param()? That way they could be changed at
> module load time, or at run time (module paramaters are also boot line
> options if they are built into the kernel.)
>
> Or, most likely, these can just be deleted all together as you aren't
> developing the driver anymore, right?
Although I am happy with the current stability, there is scope for
more development, as we do not currently support the slave mode
operation for this driver. Since we do not have (and have not seen)
any examples of this on the 2410/2440, we are not in a hurry to
support it.
> > +/* Debug */
> > +
> > +#define DBG(lev, msg...) do {\
> > + if (lev < debug_info) \
> > + dev_info(i2c->dev, msg); \
> > + if (lev < debug_norm ) \
> > + dev_dbg(i2c->dev, msg); \
> > + } while(0)
>
> And if they go away, this odd DBG() macro can also go away, right?
would `#define DBG(lev, msg..) do {} while(0)` be good enough, so
that the debugging info is left if it needed to be resurrected later?
--
Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
next prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 S3C2410 I2C driver Ben Dooks
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Ben Dooks [this message]
2005-05-19 6:25 ` 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=20041014095439.GA32248@home.fluff.org \
--to=ben-i2c@fluff.org \
--cc=lm-sensors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.