]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: core: Allow empty id_table in ACPI case as well
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 Jul 2017 14:13:28 +0000 (17:13 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 31 Jul 2017 13:50:33 +0000 (15:50 +0200)
commitc64ffff7a9d1eee6624d3eaab36968fe6df31a9f
treeaf1c1ce0e4a1488ba9ab00ad80ec3b723800913b
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
i2c: core: Allow empty id_table in ACPI case as well

For now empty ID table is not allowed with ACPI and prevents driver to
be probed.

Add a check to allow empty ID table.

This introduces a helper i2c_acpi_match_device().

Note, we rename some static function in i2c-core-acpi.c to distinguish
with public API.

Fixes: da10c06a044b ("i2c: Make I2C ID tables non-mandatory for DT'ed devices")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Rajmohan Mani <rajmohan.mani@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
[wsa: needed to get some drivers probed again]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-acpi.c
drivers/i2c/i2c-core-base.c
drivers/i2c/i2c-core.h