Thread (17 messages) 17 messages, 4 authors, 2009-08-12

Re: [PATCH 1/7] spi: Add support for device table matching

From: David Brownell <hidden>
Date: 2009-08-05 00:28:49
Also in: lkml

On Wednesday 29 July 2009, Ben Dooks wrote:
quoted
 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?
quoted
      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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help