diff options
author | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2014-10-29 10:40:37 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2014-11-25 15:35:43 +0000 |
commit | aff5e3f89a0b07e7edf9243f913378cc27e4110d (patch) | |
tree | 1d3cc8af2aa2ac1046909e341468464426fcf2e1 /drivers/spi/Makefile | |
parent | ea7513bbc04170f1cbf42953187a4d8b731c71c4 (diff) |
spi/of: Create new device registration method and accessors
Dynamically inserting spi device nodes requires the use of a single
device registration method. Refactor the existing
of_register_spi_devices() to split out the core functionality for a
single device into a separate function; of_register_spi_device(). This
function will be used by the OF_DYNAMIC overlay code to make live
modifications to the tree.
Methods to lookup a device/master using a device node are added
as well, of_find_spi_master_by_node() & of_find_spi_device_by_node().
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
[grant.likely] Split patch into two pieces for clarity
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Cc: <linux-spi@vger.kernel.org>
Diffstat (limited to 'drivers/spi/Makefile')
0 files changed, 0 insertions, 0 deletions