From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-05.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id B5606DDEED for ; Wed, 20 Dec 2006 04:52:57 +1100 (EST) In-Reply-To: <20061219141245.679caa11@localhost> References: <20061218163846.337fed65@localhost> <20061218164229.6a8b0df7@localhost> <20061219141245.679caa11@localhost> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <33A5A5AA-3ECF-474E-90D4-584EEA7F37AD@kernel.crashing.org> From: Segher Boessenkool Subject: Re: [patch 0/1] ipmi: update: add autosensing of ipmi devices on powerpc using of device tree Date: Tue, 19 Dec 2006 18:52:47 +0100 To: Christian Krafft Cc: Arnd Bergmann , Christian Krafft , linuxppc-dev@ozlabs.org, Paul Mackerras , openipmi-developer@lists.sourceforge.net List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> info->io_regsize = regsize ? *regsize : DEFAULT_REGSIZE; >> >> [Please note that fixes a copy/paste bug, too]. > > There is no DEFAULT_REGSIZE, all the code is using > DEFAULT_REGSPACING as the default size. > It looks like the code assumes that the registers are located next > to each other. It would be more logical to only use REGSIZE then, heh. > If thats not good, DEFAULT_REGSIZE should be introduced and used in > all other probe functions as well. > That would be a seperate issue . You could start the cleanup by doing #define DEFAULT_REGSIZE DEFAULT_REGSPACING and using REGSIZE in the new code. Or replace s/REGSPACING/REGSIZE/ throughout. Or something. Not your fault though, just leave it as-is if you don't feel like fixing others' mess :-) Segher