Input: atmel_mxt_ts - add missing compatible strings to OF device table
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 1 May 2018 18:44:53 +0000 (11:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 May 2018 22:51:15 +0000 (15:51 -0700)
commitf6eeb9e548572c0e64632672dbd04363cbdd4eed
tree44aa316a320a29c0c7fa76119b9400607171f9df
parent068bdb67ef74df0ad1627b7247a163e3e252ac11
Input: atmel_mxt_ts - add missing compatible strings to OF device table

Commit af503716ac14 ("i2c: core: report OF style module alias for devices
registered via OF") fixed how the I2C core reports the module alias when
devices are registered via OF.

But the atmel_mxt_ts driver only has an "atmel,maxtouch" compatible in its
OF device ID table, so if a Device Tree is using a different one, autoload
won't be working for the module (the matching works because the I2C device
ID table is used as a fallback).

So add compatible strings for each of the entries in the I2C device table.

Fixes: af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF")
Reported-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
[dtor: document which compatibles are deprecated and should not be used]
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/atmel,maxtouch.txt
drivers/input/touchscreen/atmel_mxt_ts.c