diff options
Diffstat (limited to 'include/linux/nct1008.h')
-rw-r--r-- | include/linux/nct1008.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/nct1008.h b/include/linux/nct1008.h index 0a517f1d6d89..69515a6f0bda 100644 --- a/include/linux/nct1008.h +++ b/include/linux/nct1008.h @@ -3,7 +3,7 @@ * * NCT1008, temperature monitoring device from ON Semiconductors * - * Copyright (c) 2010, NVIDIA Corporation. + * Copyright (c) 2010-2012, NVIDIA Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,6 +24,7 @@ #define _LINUX_NCT1008_H #include <linux/types.h> +#include <linux/workqueue.h> #include <mach/edp.h> @@ -31,6 +32,8 @@ struct nct1008_data; +enum nct1008_chip { NCT1008, NCT72 }; + struct nct1008_platform_data { bool supported_hwrev; bool ext_range; @@ -56,6 +59,7 @@ struct nct1008_data { u8 config; s8 *limits; u8 limits_sz; + enum nct1008_chip chip; void (*alarm_fn)(bool raised); struct regulator *nct_reg; long current_lo_limit; @@ -68,6 +72,8 @@ struct nct1008_data { #ifdef CONFIG_SENSORS_NCT1008 int nct1008_thermal_get_temp(struct nct1008_data *data, long *temp); +int nct1008_thermal_get_temps(struct nct1008_data *data, long *etemp, + long *itemp); int nct1008_thermal_get_temp_low(struct nct1008_data *data, long *temp); int nct1008_thermal_set_limits(struct nct1008_data *data, long lo_limit_milli, @@ -81,6 +87,9 @@ int nct1008_thermal_set_shutdown_temp(struct nct1008_data *data, static inline int nct1008_thermal_get_temp(struct nct1008_data *data, long *temp) { return -EINVAL; } +static inline int nct1008_thermal_get_temps(struct nct1008_data *data, + long *etemp, long *itemp) +{ return -EINVAL; } static inline int nct1008_thermal_get_temp_low(struct nct1008_data *data, long *temp) { return -EINVAL; } |