From: Jean Delvare Date: Mon, 30 Mar 2009 19:46:40 +0000 (+0200) Subject: hwmon: (ds1621) Clean up register access X-Git-Tag: v2.6.30-rc1~606^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=594592dc6f68356a3b7278eb4d260a50a66f0a06;p=pandora-kernel.git hwmon: (ds1621) Clean up register access Fix a few oddities in how the ds1621 driver accesses the registers: * We don't need a wrapper to access the configuration register. * Check for error before calling swab16. Error checking isn't complete yet, but that's a start. * Device-specific read functions should never be called during detection, as by definition we don't know what device we are talking to at that point. * Likewise, don't assume that register reads succeed during detection. Signed-off-by: Jean Delvare Cc: Aurelien Jarno --- Reading git-diff-tree failed