From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: In-Reply-To: <20060619201121.GC4845@pb15.lixom.net> References: <20060619200811.GA15524@mag.az.mvista.com> <20060619201121.GC4845@pb15.lixom.net> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <92B1CE9B-81D2-4943-9B6A-68459407688A@kernel.crashing.org> From: Segher Boessenkool Subject: Re: [PATCH] mpic: add support for serial mode interrupts Date: Tue, 20 Jun 2006 00:35:26 +0200 To: Olof Johansson Cc: linuxppc-dev , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > Can you define some constants so others can see just what the bits > mean > without digging up documentation, instead of just doing magic numbers? [my favourite argument :-) ] You'll have to read the documentation to properly understand what the bit patterns mean anyway. And if you use symbolic names, you only add another step: hunting through header files. > MPIC_GREG_GLOBAL_CONF_0 already does so; you can copy the style from > there. ...but yeah, definitely, mixing styles is at least as bad. Segher