From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756000AbcETQap (ORCPT ); Fri, 20 May 2016 12:30:45 -0400 Received: from smtp89.iad3a.emailsrvr.com ([173.203.187.89]:55244 "EHLO smtp89.iad3a.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754340AbcETQao (ORCPT ); Fri, 20 May 2016 12:30:44 -0400 X-Auth-ID: abbotti@mev.co.uk X-Sender-Id: abbotti@mev.co.uk Subject: Re: [PATCH 03/20] staging: comedi: drivers: rename PLX PCI 9080 register offsets To: Hartley Sweeten , "devel@driverdev.osuosl.org" References: <1463752162-15181-1-git-send-email-abbotti@mev.co.uk> <1463752162-15181-4-git-send-email-abbotti@mev.co.uk> Cc: Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" From: Ian Abbott Message-ID: <573F3BB2.6020601@mev.co.uk> Date: Fri, 20 May 2016 17:30:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/05/16 17:21, Hartley Sweeten wrote: > On Friday, May 20, 2016 6:49 AM, Ian Abbott wrote: >> Rename the macros in "plx9080.h" that define the offsets of registers, >> following the pattern `PLX_REG_`, where `` is the register >> name from the PLX PCI 9080 Data Book. >> >> Add defines for the "Mailbox" registers, and add parameterized macros >> for the mailbox registers and the DMA control registers. Make use of >> the parameterized versions of the macros where it seems appropriate. >> >> The registers for supporting the I2O (Intelligent Input/Output) feature >> are largely left undefined, just defining enough to allow the I2O >> feature to be disabled. >> >> Signed-off-by: Ian Abbott > > Ian, > > Just an comment on your renaming. > > You also renamed the registers in the daqbook2000 driver in the > _REG_ format. Personally I prefer the format to be > __REG. That way a grep for _ will > return both the register and bit uses. > > Currently the _REG_ form is not as common in comedi. > Looks like it's only used in amcc_35933.h and will be in daqboard2000.c. > > The __REG form is used a lot. > > Not a big deal, just a comment. It makes it easier to distinguish the register offsets from the register values, imho. -- -=( Ian Abbott @ MEV Ltd. E-mail: )=- -=( Web: http://www.mev.co.uk/ )=-