]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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>
Thu, 5 Jan 2012 16:19:30 +0000 (08:19 -0800)
commitb1b561a228de9796eff8c7e03e1e7ee63ab13115
tree52912746ebdd55f99068e047a801fddc9cd278a4
parent3310600aa7bc11ead9b0324b972d13fb0e91bcaf
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