summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnshul Jain <anshulj@nvidia.com>2016-02-12 16:53:36 -0500
committerNicolin Chen <nicolinc@nvidia.com>2017-08-14 21:38:52 -0400
commit7ffd40ce37be9dc513b7933fb07e00fb95adfe25 (patch)
treeed9b3d5021ff25bd1f9619cbb4ad2094aa78d2ba
parent657f896688f1802776c34c34a30145ad1b6490f0 (diff)
driver: misc: therm_fan_est: Coverity fixes
Fix the data type of coefficients. Bug 1416640 Bug 200116059 Coverity ID: 12632 Change-Id: Icbc024de31f0a62c5c427af72447ce2c3e414944 Signed-off-by: Anshul Jain <anshulj@nvidia.com> Reviewed-on: http://git-master/r/1011483
-rw-r--r--include/linux/therm_est.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/therm_est.h b/include/linux/therm_est.h
index a67739483..ab4da8b86 100644
--- a/include/linux/therm_est.h
+++ b/include/linux/therm_est.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * include/linux/therm_est.h 2 * include/linux/therm_est.h
3 * 3 *
4 * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2010-2016, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This software is licensed under the terms of the GNU General Public 6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and 7 * License version 2, as published by the Free Software Foundation, and
@@ -97,7 +97,7 @@ struct therm_est_data {
97struct therm_fan_est_subdevice { 97struct therm_fan_est_subdevice {
98 const char *dev_data; 98 const char *dev_data;
99 int (*get_temp)(const char *, long *); 99 int (*get_temp)(const char *, long *);
100 int coeffs[HIST_LEN]; 100 long coeffs[HIST_LEN];
101 int hist[HIST_LEN]; 101 int hist[HIST_LEN];
102}; 102};
103 103