Re: [PATCH 1/1] power supply: add driver for TI BQ20Z75 gas gauge IC

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mark Brown
Date: Tuesday, August 31, 2010 - 6:13 am

On Fri, Aug 27, 2010 at 03:50:43PM -0700, rklein@nvidia.com wrote:


Rather than using REG_MAX it'd seem safer to use ARRAY_SIZE() to make
sure you're within the array.


Indentation is messed up here.


Remove unconditional logging like this, make it dev_dbg() if you want to
keep it in so it's only visible when explicitly requested.


Indentation again.


No need for null functions like this.


The standard way to do this is with the suspend/resume functions -
#define them to NULL which turns their assignments into noops.


This only makes sense if it's an actual person (or other contact
address); there's already copyright statements on the file, the author
information is more there to help find someone who might know something
about the driver.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/1] power supply: add driver for TI BQ20Z75 ga ..., Mark Brown, (Tue Aug 31, 6:13 am)