]> 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, 19 Dec 2011 21:56:34 +0000 (13:56 -0800)
commit4e685719e1be404098720f5bb7dadffdeded410f
tree44e1fd27e2673c17cebf6cbf6dc0d56665eb6293
parentfc48c92552d3f3085a9fc7241195dbf9dd636c67
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