summaryrefslogtreecommitdiff
path: root/lib/halfmd4.c
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2013-03-01 16:57:31 (GMT)
committerWolfram Sang <wsa@the-dreams.de>2013-03-24 09:30:53 (GMT)
commitee5c27440cc24d62ec463cce4c000bb32c5692c7 (patch)
tree9f6a2bfdeff932a5ac6a42f1f6cbec7f1d22f5b4 /lib/halfmd4.c
parent8bb9660418e05bb1845ac1a2428444d78e322cc7 (diff)
downloadlinux-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