public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* i2c via686a.c: save at least 0.5k of space by long v[256] -> u16 v[256]
@ 2005-09-01  6:10 Denis Vlasenko
  2005-09-01 15:59 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Denis Vlasenko @ 2005-09-01  6:10 UTC (permalink / raw)
  To: greg; +Cc: khali, lm-sensors, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 44 bytes --]

Not tested, but it's rather obvious.
--
vda

[-- Attachment #2: via686a.patch --]
[-- Type: text/x-diff, Size: 677 bytes --]

--- 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,

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-09-10 21:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-01  6:10 i2c via686a.c: save at least 0.5k of space by long v[256] -> u16 v[256] Denis Vlasenko
2005-09-01 15:59 ` Greg KH
2005-09-02  5:54   ` Denis Vlasenko
2005-09-03  8:22     ` Jean Delvare
2005-09-03 14:13       ` [PATCH 2.6] hwmon: via686a: save 0.5k by long v[256] -> s16 v[256] Jean Delvare
2005-09-09 21:32         ` Greg KH
2005-09-10 21:00           ` Jean Delvare
2005-09-03  8:26     ` i2c via686a.c: save at least 0.5k of space by long v[256] -> u16 v[256] Jean Delvare
2005-09-03 12:51       ` Denis Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox