i2c: core: Make comment about I2C table requirement to reflect the code
authorJavier Martinez Canillas <javierm@redhat.com>
Wed, 9 Aug 2017 09:21:28 +0000 (11:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 14 Aug 2017 19:33:46 +0000 (21:33 +0200)
commitf4b17a14faeec4160f97ad75ea7534f571f12404
tree30b1a52256849815ea4af56f6ef88ecdc4919fe9
parent4e2d93de070ceaca5097f7ee5c311731b83208a0
i2c: core: Make comment about I2C table requirement to reflect the code

I2C drivers were required to have an I2C device ID table even if were for
devices that would only be registered using a specific firmware interface
(e.g: OF or ACPI).

But commit da10c06a044b ("i2c: Make I2C ID tables non-mandatory for DT'ed
devices") changed the I2C core to relax the requirement and allow drivers
to avoid defining this table.

Unfortunately it only took into account drivers for OF-only devices and
forgot about ACPI-only ones, and this was fixed by commit c64ffff7a9d1
("i2c: core: Allow empty id_table in ACPI case as well").

But the latter didn't update the original comment, so it doesn't reflect
what the code does now.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-base.c