Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422759AbWLUGOI (ORCPT ); Thu, 21 Dec 2006 01:14:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422764AbWLUGOI (ORCPT ); Thu, 21 Dec 2006 01:14:08 -0500 Received: from smtp.osdl.org ([65.172.181.25]:41565 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422759AbWLUGOF (ORCPT ); Thu, 21 Dec 2006 01:14:05 -0500 Date: Wed, 20 Dec 2006 22:13:28 -0800 From: Andrew Morton To: David Brownell Cc: Linux Kernel list , Andrew Victor , Bill Gatliff , Haavard Skinnemoen , jamey.hicks@hp.com, Kevin Hilman , Nicolas Pitre , Russell King , Tony Lindgren , pHilipp Zabel Subject: Re: [patch 2.6.20-rc1 5/6] SA1100 GPIO wrappers Message-Id: <20061220221328.ee3bfc5d.akpm@osdl.org> In-Reply-To: <200612201313.22572.david-b@pacbell.net> References: <200611111541.34699.david-b@pacbell.net> <200612201304.03912.david-b@pacbell.net> <200612201313.22572.david-b@pacbell.net> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 516 Lines: 15 On Wed, 20 Dec 2006 13:13:21 -0800 David Brownell wrote: > +#define gpio_get_value(gpio) \ > + (GPLR & GPIO_GPIO(gpio)) > + > +#define gpio_set_value(gpio,value) \ > + ((value) ? (GPSR = GPIO_GPIO(gpio)) : (GPCR(gpio) = GPIO_GPIO(gpio))) likewise. - 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/