lkml.org 
[lkml]   [2005]   [Sep]   [1]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromDenis Vlasenko <>
Subjecti2c via686a.c: save at least 0.5k of space by long v[256] -> u16 v[256]
DateThu, 1 Sep 2005 09:10:14 +0300
Not tested, but it's rather obvious.
--
vda
--- linux-2.6.12.src/drivers/i2c/chips/via686a.c.orig	Sun Jun 19 16:10:10 2005
+++ linux-2.6.12.src/drivers/i2c/chips/via686a.c	Tue Aug 30 00:21:39 2005
@@ -205,7 +205,7 @@ static inline u8 FAN_TO_REG(long rpm, in
  but the function is very linear in the useful range (0-80 deg C), so 
  we'll just use linear interpolation for 10-bit readings.)  So, tempLUT 
  is the temp at via register values 0-255: */
-static const long tempLUT[] =
+static const int16_t tempLUT[] =
     { -709, -688, -667, -646, -627, -607, -589, -570, -553, -536, -519,
 	    -503, -487, -471, -456, -442, -428, -414, -400, -387, -375,
 	    -362, -350, -339, -327, -316, -305, -295, -285, -275, -265,
\
 
 \ /
  Last update: 2005-09-01 08:17    [W:1.487 / U:0.050 seconds]
©2003-2008 Jasper Spaans