commit | 5f143af7501e7c435c56e181a655493edaa92509 | [log] [tgz] |
---|---|---|
author | Marco Felsch <m.felsch@pengutronix.de> | Tue Sep 25 11:42:29 2018 +0200 |
committer | Mark Brown <broonie@kernel.org> | Thu Sep 27 23:36:03 2018 +0100 |
tree | 8f46955879e9a026fc3740cdbd734bb9025feaba | |
parent | 5b394b2ddf0347bef56e50c69a58773c94343ff3 [diff] |
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>