From 7ffd40ce37be9dc513b7933fb07e00fb95adfe25 Mon Sep 17 00:00:00 2001 From: Anshul Jain Date: Fri, 12 Feb 2016 13:53:36 -0800 Subject: 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 Reviewed-on: http://git-master/r/1011483 --- include/linux/therm_est.h | 4 ++-- 1 file 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 @@ /* * include/linux/therm_est.h * - * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2010-2016, NVIDIA CORPORATION. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -97,7 +97,7 @@ struct therm_est_data { struct therm_fan_est_subdevice { const char *dev_data; int (*get_temp)(const char *, long *); - int coeffs[HIST_LEN]; + long coeffs[HIST_LEN]; int hist[HIST_LEN]; }; -- cgit v1.2.2