From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id B6A55B6F34 for ; Wed, 5 Aug 2009 10:28:32 +1000 (EST) Received: from n15.bullet.mail.mud.yahoo.com (n15.bullet.mail.mud.yahoo.com [68.142.206.42]) by ozlabs.org (Postfix) with SMTP id EDA68DDD0C for ; Wed, 5 Aug 2009 10:28:31 +1000 (EST) From: David Brownell To: Ben Dooks Subject: Re: [PATCH 1/7] spi: Add support for device table matching Date: Mon, 3 Aug 2009 19:21:22 -0700 References: <20090729170345.GA26787@oksana.dev.rtsoft.ru> <20090729170457.GA4803@oksana.dev.rtsoft.ru> <20090729214446.GB1728@fluff.org.uk> In-Reply-To: <20090729214446.GB1728@fluff.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200908031921.23126.david-b@pacbell.net> Cc: linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org, Jean Delvare , Andrew Morton , David Woodhouse List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wednesday 29 July 2009, Ben Dooks wrote: > >  struct spi_driver { > > +     const struct spi_device_id *id_table; > > +     int                     (*probe_id)(struct spi_device *spi, > > +                                         const struct spi_device_id *id); > > how about leaving it at just probe and have either a call or a field > in the device that you can look at to see if this was a new style of > call? > > >       int                     (*probe)(struct spi_device *spi); For the record, if this is going to happen I think the appropriate long-term solution is to have probe() take the device_id just as it does with other busses. Of course that involves changing *every* SPI driver... and I'd rather not do that quite yet.