diff options
author | Joshua Primero <jprimero@nvidia.com> | 2012-05-08 17:25:31 -0700 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-06-28 08:57:15 -0700 |
commit | 6fa6a2dac0db8ccdf361a1dfee036aebb145b0a8 (patch) | |
tree | ff7a380c9307f66164a23baa331d3c07c2ae9812 /include/linux | |
parent | 97c7c67dd39bb1f4a7ecc1be86f748dede33e8f0 (diff) |
drivers: nct: exposed nct internal/external temps
Added function that exposes nct1008's internal and external
temperature measurements.
bug 1007726
Change-Id: Iffaca95f5e4267e09a0c3ebb2fbfb909a3bed89d
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/101377
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nct1008.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/nct1008.h b/include/linux/nct1008.h index 9227f4ad82f4..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> @@ -71,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, @@ -84,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; } |