S3C2410 I2C driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux