]> 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)
commitd282bb772c5f538b3816a16cc1ed4639eab2b84e
tree44aa316a320a29c0c7fa76119b9400607171f9df
parent863b2d0e54741f22a4636ffe7a3936b9ecf85bbc
Input: atmel_mxt_ts - add missing compatible strings to OF device table

Commit 9af00b7d114f ("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: 9af00b7d114f ("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