From: greg@kroah.com (Greg KH)
To: lm-sensors@vger.kernel.org
Subject: S3C2410 I2C driver
Date: Thu, 19 May 2005 06:25:18 +0000 [thread overview]
Message-ID: <20041013172539.GB17142@kroah.com> (raw)
In-Reply-To: <20041008130842.GK12218@home.fluff.org>
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?
> +/* 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?
Other than that minor stuff, it looks good to me.
thanks,
greg k-h
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 ` Ben Dooks
2005-05-19 6:25 ` Greg KH [this message]
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Ben Dooks
2005-05-19 6:25 ` Greg KH
2005-05-19 6:25 ` Ben Dooks
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=20041013172539.GB17142@kroah.com \
--to=greg@kroah.com \
--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.