Save 0.5kB of lookup table data. This is a backport from Linux

2.6, original patch from Denis Vlasenko.
Drop useless check in detection function.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3134 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2005-10-29 17:17:48 +00:00
1 parent 72a6f0dde5
commit f40c89a8c6
1 file changed
+1 -5
+1 -5
View File
@@ -207,7 +207,7 @@ static inline u8 FAN_TO_REG(long rpm, int div)
// 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 s16 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,
@@ -802,10 +802,6 @@ static int __devinit via686a_pci_probe(struct pci_dev *dev,
if (force_addr)
addr = force_addr; /* so detect will get called */
if (!addr) {
printk("via686a.o: No Via 686A sensors found.\n");
return -ENODEV;
}
normal_isa[0] = addr;
s_bridge = dev;
return i2c_add_driver(&via686a_driver);