]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (f75375s) Initialize pwmX_mode and pwmX_enable if there is no platform data
authorGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 8 Dec 2011 18:15:51 +0000 (10:15 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 12 Dec 2011 16:35:29 +0000 (08:35 -0800)
commit82485eb977f52367bf0c5aea6d1e25e4a2fdc9fd
treede5b18a0729da824a74c8d633d4379ee616b1773
parentadb5c7a4ac41889164527327c425cfde63900457
hwmon: (f75375s) Initialize pwmX_mode and pwmX_enable if there is no platform data

pwmX_mode and pwmX_enable are not initialized if no platform data is provided to
the driver. Read chip configuration at driver initialization time and initialize
attributes to reflect chip configuration.

Cc: Riku Voipio <riku.voipio@iki.fi>
Reviewed-by: Bjoern Gerhart <oss@extracloud.de>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/f75375s.c