hwmon: (gpio-fan) Use is_visible to determine if attributes should be created
authorGuenter Roeck <linux@roeck-us.net>
Sat, 30 Mar 2013 16:09:39 +0000 (09:09 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 8 Apr 2013 04:16:42 +0000 (21:16 -0700)
Simplify code and reduce object size by more than 300 bytes (x86_64).

Cc: Jamie Lentin <jm@lentin.co.uk>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Tested-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gpio-fan.c

Simple merge