From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Subject: Re: [PATCH 1/1] Initial support for ST Microelectronics lis3l02dq accelerometer via SPI Date: Wed, 30 Apr 2008 19:18:36 -0700 Message-ID: <200804301918.37100.david-b@pacbell.net> References: <481210CC.9080702@cam.ac.uk> <4815D9A6.4040306@cam.ac.uk> <200804301804.24924.david-b@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Jonathan Cameron Return-path: In-Reply-To: <200804301804.24924.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Wednesday 30 April 2008, David Brownell wrote: > =A0=A0=A0=A0=A0=A0=A0=A0* gpio_to_irq(data_ready_gpio) is non-negative ..= . if not, > =A0=A0=A0=A0=A0=A0=A0=A0 =A0don't register the IRQ handler or expect to e= nable > =A0=A0=A0=A0=A0=A0=A0=A0 =A0that support For that matter, you don't actually need to package that in platform_data. Just check spi_device.irq as provided in the device setup logic. Your code doesn't seem to care if that signal is a GPIO or not... - Dave ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference = Don't miss this year's exciting event. There's still time to save $100. = Use priority code J8TL2D2. = http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java= one