diff options
| author | Joshua Primero <jprimero@nvidia.com> | 2012-10-24 17:18:31 -0400 |
|---|---|---|
| committer | Nicolin Chen <nicolinc@nvidia.com> | 2017-08-11 15:14:14 -0400 |
| commit | 2aac4cefd60ccccfe76e215192c8ef0f3c9ef221 (patch) | |
| tree | 98399bad45eeecf6808245ffd9761eaa9f08abee /include/linux | |
| parent | 289c8f820e3102c324ab3319eb7a4a8dacf3562d (diff) | |
drivers: misc: nct: Expose active dev interface
Exposed the new active cooling device interface from new
Linux Thermal Framework API in the nct1008 driver.
bug 1059470
Change-Id: I34417984aa846499aef636d1391f88313e333cb4
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/159980
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nct1008.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/nct1008.h b/include/linux/nct1008.h index 9eec97f57..68b35f16a 100644 --- a/include/linux/nct1008.h +++ b/include/linux/nct1008.h | |||
| @@ -31,6 +31,14 @@ struct nct1008_data; | |||
| 31 | 31 | ||
| 32 | enum nct1008_chip { NCT1008, NCT72 }; | 32 | enum nct1008_chip { NCT1008, NCT72 }; |
| 33 | 33 | ||
| 34 | |||
| 35 | struct active_temp_state { | ||
| 36 | long trip_temp; | ||
| 37 | unsigned long state; | ||
| 38 | }; | ||
| 39 | |||
| 40 | #define MAX_ACTIVE_TEMP_STATE 16 | ||
| 41 | |||
| 34 | struct nct1008_cdev { | 42 | struct nct1008_cdev { |
| 35 | struct thermal_cooling_device *(*create_cdev)(void *); | 43 | struct thermal_cooling_device *(*create_cdev)(void *); |
| 36 | void *cdev_data; | 44 | void *cdev_data; |
| @@ -40,10 +48,9 @@ struct nct1008_cdev { | |||
| 40 | int tc1; | 48 | int tc1; |
| 41 | int tc2; | 49 | int tc2; |
| 42 | int passive_delay; | 50 | int passive_delay; |
| 51 | struct active_temp_state states[MAX_ACTIVE_TEMP_STATE]; | ||
| 43 | }; | 52 | }; |
| 44 | 53 | ||
| 45 | #define NCT1008_MAX_ACTIVE (16) | ||
| 46 | |||
| 47 | struct nct1008_platform_data { | 54 | struct nct1008_platform_data { |
| 48 | bool supported_hwrev; | 55 | bool supported_hwrev; |
| 49 | bool ext_range; | 56 | bool ext_range; |
| @@ -53,6 +60,6 @@ struct nct1008_platform_data { | |||
| 53 | s8 shutdown_local_limit; | 60 | s8 shutdown_local_limit; |
| 54 | 61 | ||
| 55 | struct nct1008_cdev passive; | 62 | struct nct1008_cdev passive; |
| 56 | struct nct1008_cdev active[NCT1008_MAX_ACTIVE]; | 63 | struct nct1008_cdev active; |
| 57 | }; | 64 | }; |
| 58 | #endif /* _LINUX_NCT1008_H */ | 65 | #endif /* _LINUX_NCT1008_H */ |
