From: Wolfgang Denk Date: Thu, 06 Feb 2014 13:07:44 +0100 Subject: [U-Boot] [PATCH v3 2/2] ventana: Add Gateworks Ventana family support In-Reply-To: References: <1391642553-25778-1-git-send-email-tharvey@gateworks.com> <20140205234307.DCD82382202@gemini.denx.de> Message-ID: <20140206120744.69C39380761@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Tim, In message you wrote: > > > > +/* > > > + * Hardware Monitor > > > + */ > > > +#define GSC_HWMON_TEMP 0x00 > > > +#define GSC_HWMON_VIN 0x02 > > > +#define GSC_HWMON_VDD_3P3 0x05 > > > +#define GSC_HWMON_VBATT 0x08 > > > +#define GSC_HWMON_VDD_5P0 0x0b > > > +#define GSC_HWMON_VDD_CORE 0x0e > > > +#define GSC_HWMON_VDD_HIGH 0x14 > > > +#define GSC_HWMON_VDD_DDR 0x17 > > > +#define GSC_HWMON_VDD_SOC 0x11 > > > +#define GSC_HWMON_VDD_1P8 0x1d > > > +#define GSC_HWMON_VDD_2P5 0x23 > > > +#define GSC_HWMON_VDD_1P0 0x20 > > > > I'd really like to see a C struct here to describe the register > > layout... > > you mean enum right? No, actually I mean a struct - but on closer look I am not really sure if these numbers are offsets against a device base address or actually I2C addresses? > > This causes a checkpatch error: > > > > ERROR: Macros with complex values should be enclosed in parenthesis > > > > Please fix! > > what args do you run checkpatch.pl with? The default args does not > check COMPLEX_MACRO it would seem which is why I missed that. It appears I happen to run an older version of checkpatch.pl; I have no idea why COMPLEX_MACRO (and MULTISTATEMENT_MACRO_USE_DO_WHILE) are disabled in the current code. Tom, what do you think? Should we not activate the COMPLEX_MACRO and MULTISTATEMENT_MACRO_USE_DO_WHILE checks? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "If you want to eat hippopatomus, you've got to pay the freight." - attributed to an IBM guy, about why IBM software uses so much memory