From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 139A9DDDF3 for ; Wed, 14 Nov 2007 10:46:40 +1100 (EST) Message-ID: <473A3760.2090807@freescale.com> Date: Tue, 13 Nov 2007 17:46:40 -0600 From: Scott Wood MIME-Version: 1.0 To: Jochen Friedrich Subject: Re: [PATCH] powerpc: Add support for PORTA and PORTB odr registers References: <4739ECDA.4010200@scram.de> In-Reply-To: <4739ECDA.4010200@scram.de> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: paulus@samba.org, linux-kernel@vger.kernel.org, "linuxppc-embedded@ozlabs.org" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Jochen Friedrich wrote: > @@ -474,6 +481,12 @@ static void cpm1_set_pin16(int port, int pin, int > flags) > else > clrbits16(&iop->par, pin); > > + if (port == CPM_PORTA) { > + if (flags & CPM_PIN_OPENDRAIN) > + setbits16(&iop->odr, pin); > + else > + clrbits16(&iop->odr, pin); > + } > if (port == CPM_PORTC) { > if (flags & CPM_PIN_SECONDARY) > setbits16(&iop->sor, pin); Where is the odr field of cpm_ioport16 defined? It's the same position as sor, so maybe call it odr_sor or something. Also, please add an extra newline after the closing brace. -Scott