]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: core: helper function to detect slave mode
authorLuis Oliveira <Luis.Oliveira@synopsys.com>
Thu, 26 Jan 2017 17:45:32 +0000 (17:45 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 28 Jan 2017 21:12:37 +0000 (22:12 +0100)
commitcefae80249f6bf3fdbc7c3a00bc43deb4c1bccf0
tree019fc491fc1a6a0ec825c98d60b8f8268884d40b
parent50b918c5a6ffad1d9fae29c4fdcb52383b123665
i2c: core: helper function to detect slave mode

This function has the purpose of mode detection by checking the
device nodes for a reg matching with the I2C_OWN_SLAVE_ADDREESS flag.
Currently only checks using OF functions (ACPI slave not supported yet).

Signed-off-by: Luis Oliveira <lolivei@synopsys.com>
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c
include/linux/i2c.h