]> Git Repo - linux.git/commit
spi: add support for device table matching
authorAnton Vorontsov <[email protected]>
Tue, 22 Sep 2009 23:46:04 +0000 (16:46 -0700)
committerLinus Torvalds <[email protected]>
Wed, 23 Sep 2009 14:39:43 +0000 (07:39 -0700)
commit75368bf6c2876d8f33abfe77aa3864869a3893eb
tree97a543508a8aeb45646d059f8cdd561ae0a76ef2
parentb5f3294f0be5496aec01e5aa709a5fab8bb2f225
spi: add support for device table matching

With this patch spi drivers can use standard spi_driver.id_table and
MODULE_DEVICE_TABLE() mechanisms to bind against the devices.  Just like
we do with I2C drivers.

This is useful when a single driver supports several variants of devices
but it is not possible to detect them in run-time (like non-JEDEC chips
probing in drivers/mtd/devices/m25p80.c), and when platform_data usage is
overkill.

This patch also makes life a lot easier on OpenFirmware platforms, since
with OF we extensively use proper device IDs in modaliases.

Signed-off-by: Anton Vorontsov <[email protected]>
Cc: David Brownell <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: Jean Delvare <[email protected]>
Cc: Ben Dooks <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/spi/spi.c
include/linux/mod_devicetable.h
include/linux/spi/spi.h
scripts/mod/file2alias.c
This page took 0.062214 seconds and 4 git commands to generate.