diff options
author | Doug Anderson <dianders@chromium.org> | 2013-03-01 16:57:31 (GMT) |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-03-24 09:30:53 (GMT) |
commit | ee5c27440cc24d62ec463cce4c000bb32c5692c7 (patch) | |
tree | 9f6a2bfdeff932a5ac6a42f1f6cbec7f1d22f5b4 /lib/halfmd4.c | |
parent | 8bb9660418e05bb1845ac1a2428444d78e322cc7 (diff) | |
download | linux-fsl-qoriq-ee5c27440cc24d62ec463cce4c000bb32c5692c7.tar.xz |
i2c: core: Pick i2c bus number from dt alias if present
This allows you to get the equivalent functionality of
i2c_add_numbered_adapter() with all data in the device tree and no
special case code in your driver. This is a common device tree
technique.
For quick reference, the FDT syntax for using an alias to provide an
ID looks like:
aliases {
i2c0 = &i2c_0;
i2c1 = &i2c_1;
};
Signed-off-by: Doug Anderson <dianders@chromium.org>
[wsa: removed one check from static function. We know our callers]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'lib/halfmd4.c')
0 files changed, 0 insertions, 0 deletions