]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm87) Fix: do not use assignment in if condition
authorGuenter Roeck <linux@roeck-us.net>
Mon, 16 Jan 2012 23:11:57 +0000 (15:11 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 19 Mar 2012 01:27:05 +0000 (18:27 -0700)
commite53f6b020acf496c21dce6a05efc7c8fd95950a9
treeb393471549e305c3e11512ea57de349ffa2d501d
parent7e580e8ebade63b5f9563d564f6ffb9af978fb67
hwmon: (lm87) Fix: do not use assignment in if condition

Fix checkpatch issue:
ERROR: do not use assignment in if condition

Replace repeated calls to device_create_file() with calls to sysfs_create_group.

Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm87.c