From 2aac4cefd60ccccfe76e215192c8ef0f3c9ef221 Mon Sep 17 00:00:00 2001 From: Joshua Primero Date: Wed, 24 Oct 2012 14:18:31 -0700 Subject: 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 Reviewed-on: http://git-master/r/159980 --- include/linux/nct1008.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include/linux') 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; enum nct1008_chip { NCT1008, NCT72 }; + +struct active_temp_state { + long trip_temp; + unsigned long state; +}; + +#define MAX_ACTIVE_TEMP_STATE 16 + struct nct1008_cdev { struct thermal_cooling_device *(*create_cdev)(void *); void *cdev_data; @@ -40,10 +48,9 @@ struct nct1008_cdev { int tc1; int tc2; int passive_delay; + struct active_temp_state states[MAX_ACTIVE_TEMP_STATE]; }; -#define NCT1008_MAX_ACTIVE (16) - struct nct1008_platform_data { bool supported_hwrev; bool ext_range; @@ -53,6 +60,6 @@ struct nct1008_platform_data { s8 shutdown_local_limit; struct nct1008_cdev passive; - struct nct1008_cdev active[NCT1008_MAX_ACTIVE]; + struct nct1008_cdev active; }; #endif /* _LINUX_NCT1008_H */ -- cgit v1.2.2