diff options
author | Anshul Jain <anshulj@nvidia.com> | 2013-03-24 17:06:54 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2013-03-25 15:34:18 -0700 |
commit | 8937deea27d914ab5069cc3008b9625b37723ec8 (patch) | |
tree | df44f6a17b45e37ec5c21d9107daa678a1a0c8f9 /include | |
parent | 063e380c15a6859cae997dfd7ba9e0dfda42ca84 (diff) |
thermal: pwm_fan: Add sysfs node for state cap
This change introduces new sysfs API state_cap.
State_cap should be used for capping the maximum pwm of
fan from application layer.
State_cap provides a layer of abstraction to app profile
framework. Board level differences can now be taken care
of by the driver.
Bug 1259204
Change-Id: I5aaeba55c2420fc3e518145e93807f47515e9638
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/212431
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/pwm_fan.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/platform_data/pwm_fan.h b/include/linux/platform_data/pwm_fan.h index 68f0ecac39ef..7d12db2518f4 100644 --- a/include/linux/platform_data/pwm_fan.h +++ b/include/linux/platform_data/pwm_fan.h @@ -27,12 +27,11 @@ struct pwm_fan_platform_data { int active_pwm[MAX_ACTIVE_STATES]; int active_rru[MAX_ACTIVE_STATES]; int active_rrd[MAX_ACTIVE_STATES]; - int pwm_cap; int pwm_period; - int active_temps[MAX_ACTIVE_STATES]; int pwm_id; int step_time; int precision_multiplier; int tach_gpio; + int state_cap; }; #endif |