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)
commit073f1e6c895f256b1d7b535a97fe0ced98ac1615
treeb393471549e305c3e11512ea57de349ffa2d501d
parentc6370dbe45278db0ebebc377c0a6143b7c488379
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