Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 26 Mar 2003 15:18:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 26 Mar 2003 15:18:46 -0500 Received: from 12-231-249-244.client.attbi.com ([12.231.249.244]:5382 "HELO kroah.com") by vger.kernel.org with SMTP id ; Wed, 26 Mar 2003 15:18:45 -0500 Date: Wed, 26 Mar 2003 12:29:04 -0800 From: Greg KH To: Martin Schlemmer Cc: KML , Dominik Brodowski , sensors@Stimpy.netroedge.com Subject: Re: w83781d i2c driver updated for 2.5.66 (without sysfs support) Message-ID: <20030326202904.GK24689@kroah.com> References: <1048582394.4774.7.camel@workshop.saharact.lan> <20030325175603.GG15823@kroah.com> <1048705473.7569.10.camel@nosferatu.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1048705473.7569.10.camel@nosferatu.lan> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1117 Lines: 40 On Wed, Mar 26, 2003 at 09:04:33PM +0200, Martin Schlemmer wrote: > Hi > > Ok, this is the w83781d driver updated for 2.5.66bk2. It works > over here. Looks nice, thanks. Some of the nasty casts should be fixed up though. Stuff like: > + ERROR7: > + if (!is_isa) > + i2c_detach_client(& > + (((struct w83781d_data > + *) (i2c_get_clientdata(new_client)))-> > + lm75[1])); > + ERROR6: > + if (!is_isa) > + i2c_detach_client(& > + (((struct w83781d_data > + *) (i2c_get_clientdata(new_client)))-> > + lm75[0])); > + ERROR5: > + if (!is_isa) > + kfree(((struct w83781d_data *) (i2c_get_clientdata(new_client)))-> > + lm75); Is just obnoxious :) I'll hold off sending this driver to Linus until it gets cleaned up with sysfs entries, as I'd rather not pollute /proc and sysctls anymore. thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/