Re: [PATCH v2] hwmon: Add support for JEDEC JC 42.4 compliant temperature sensors

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joe Perches
Date: Sunday, July 11, 2010 - 8:31 am

On Sun, 2010-07-11 at 07:53 -0700, Guenter Roeck wrote:
[]
[]

Decidedly trivial:

Kernel style seems to prefer having logical tests at
end of line rather than start of line.

Maybe this bit would be more readable with a temporary:

	for (i = 0; i < ARRAY_SIZE(jc42_chips); i++) {
		struct jc42_chips *chip = &jc42_chips[i];
		if (manid == chip->manid &&
		    (devid & chip->devid_mask) == chip->devid) {
			strlcpy(info->type, "jc42", I2C_NAME_SIZE);
			return 0;
		}
	}

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v2] hwmon: Add support for JEDEC JC 42.4 compli ..., Joe Perches, (Sun Jul 11, 8:31 am)