summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnshul Jain <anshulj@nvidia.com>2013-03-26 20:55:10 -0700
committerSimone Willett <swillett@nvidia.com>2013-03-28 10:31:17 -0700
commit56298c4209906803d0d80ba987491ee183678074 (patch)
tree58c83900f244674922d26eff16548ab625a25e9c /include
parentc40024936ef8c85da1ae75bf5b0e53ac631cdfce (diff)
thermal: pwm_fan: Add support for look up table
This change adds a lookup table. This lookup table is used for looking up the pwm state cap based on the value echoed in state_cap sysfs node. Bug 1261177 Bug 1259488 Bug 1259204 Change-Id: Ie549d0a89e412655cd91d1f6321cd095af07071c Signed-off-by: Anshul Jain <anshulj@nvidia.com> Reviewed-on: http://git-master/r/213402 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/pwm_fan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/pwm_fan.h b/include/linux/platform_data/pwm_fan.h
index 7d12db2518f4..8751d6270dde 100644
--- a/include/linux/platform_data/pwm_fan.h
+++ b/include/linux/platform_data/pwm_fan.h
@@ -27,6 +27,7 @@ struct pwm_fan_platform_data {
int active_pwm[MAX_ACTIVE_STATES];
int active_rru[MAX_ACTIVE_STATES];
int active_rrd[MAX_ACTIVE_STATES];
+ int state_cap_lookup[MAX_ACTIVE_STATES];
int pwm_period;
int pwm_id;
int step_time;