From f40c89a8c6d692301aa033abc34c7ca6c0366cf5 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 29 Oct 2005 17:17:48 +0000 Subject: [PATCH] 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 --- kernel/chips/via686a.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/chips/via686a.c b/kernel/chips/via686a.c index e42cc7d3..34321ee5 100644 --- a/kernel/chips/via686a.c +++ b/kernel/chips/via686a.c @@ -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);