commit | cefae80249f6bf3fdbc7c3a00bc43deb4c1bccf0 | [log] [tgz] |
---|---|---|
author | Luis Oliveira <Luis.Oliveira@synopsys.com> | Thu Jan 26 17:45:32 2017 +0000 |
committer | Wolfram Sang <wsa@the-dreams.de> | Sat Jan 28 22:12:37 2017 +0100 |
tree | 019fc491fc1a6a0ec825c98d60b8f8268884d40b | |
parent | 50b918c5a6ffad1d9fae29c4fdcb52383b123665 [diff] |
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>