spi: make OF helper available for others
authorMarco Felsch <m.felsch@pengutronix.de>
Tue, 25 Sep 2018 09:42:29 +0000 (11:42 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 27 Sep 2018 22:36:03 +0000 (23:36 +0100)
commit5f143af7501e7c435c56e181a655493edaa92509
tree8f46955879e9a026fc3740cdbd734bb9025feaba
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
spi: make OF helper available for others

The of_find_spi_device_by_node() helper function is useful for other
modules too. Export the funciton as GPL like all other spi helper
functions and make it available if CONFIG_OF is enabled, because it isn't
related to the CONFIG_OF_DYNAMIC context. Finally add a stub if
CONFIG_OF isn't enabled, so others must not care about it.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
include/linux/spi/spi.h