From 6fa6a2dac0db8ccdf361a1dfee036aebb145b0a8 Mon Sep 17 00:00:00 2001 From: Joshua Primero Date: Tue, 8 May 2012 17:25:31 -0700 Subject: 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 Reviewed-on: http://git-master/r/101377 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam --- include/linux/nct1008.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/linux') 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 +#include #include @@ -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; } -- cgit v1.2.3