]> err.no Git - linux-2.6/commit
of: adapt of_find_i2c_driver() to be usable by SPI also
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 26 Jul 2008 02:25:13 +0000 (22:25 -0400)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 26 Jul 2008 02:25:13 +0000 (22:25 -0400)
commit3f07af494dfa6de43137dae430431c9fbf929c0c
treeee204d7cb204fbe287f2626fdeb8926adc7d4889
parent5047887caf1806f31652210df27fb62a7c43f27d
of: adapt of_find_i2c_driver() to be usable by SPI also

SPI has a similar problem as I2C in that it needs to determine an
appropriate modalias value for each device node.  This patch adapts
the of_i2c of_find_i2c_driver() function to be usable by of_spi also.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/base.c
drivers/of/of_i2c.c
include/linux/of.h