]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec8ad25a2b8220e9e90d04eba9b08563e262f170
tree44aa316a320a29c0c7fa76119b9400607171f9df
parentc958bf52b3569d26a2c358329807dac30463704f
Input: atmel_mxt_ts - add missing compatible strings to OF device table

Commit 8a1a57e8dcd0 ("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: 8a1a57e8dcd0 ("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