aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2013-03-01 08:57:31 -0800
committerWolfram Sang <wsa@the-dreams.de>2013-03-24 10:30:53 +0100
commitee5c27440cc24d62ec463cce4c000bb32c5692c7 (patch)
tree9f6a2bfdeff932a5ac6a42f1f6cbec7f1d22f5b4 /include/linux/i2c.h
parentLinux 3.9-rc4 (diff)
downloadlinux-dev-ee5c27440cc24d62ec463cce4c000bb32c5692c7.tar.xz
linux-dev-ee5c27440cc24d62ec463cce4c000bb32c5692c7.zip
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 'include/linux/i2c.h')
0 files changed, 0 insertions, 0 deletions