hwmon: (f75375s) Allow setting up fans with platform_data
authorRiku Voipio <riku.voipio@iki.fi>
Wed, 26 Sep 2007 10:14:40 +0000 (13:14 +0300)
committerMark M. Hoffman <mhoffman@lightlink.com>
Thu, 8 Nov 2007 13:42:46 +0000 (08:42 -0500)
commitff312d07c2e1b1482fcc139b8af67ca39e9e98f0
tree21297694fea8776dd7713b2ea7b0cc9985ac40f4
parent620c142db20477149bf04c7e8e8fde70d608e8c7
hwmon: (f75375s) Allow setting up fans with platform_data

Allow initializing fans on systems where BIOS does not do that by
default.

 - define f75375s_platform_data in new file f75375s.h
 - if platform_data was provided, set fans accordingly in f75375_init()
 - split set_pwm_enable() to a sysfs callback and directly usable
   set_pwm_enable_direct()

Signed-off-by: Riku Voipio <riku.voipio@movial.fi>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/f75375s.c
include/linux/f75375s.h [new file with mode: 0644]