Re: [PATCH] Input: atmel_mxt_ts: Add of node type to the i2c table

Nick Dyer
2014-09-09T12:36:33Z

On 09/09/14 08:52, Sjoerd Simons wrote:
> For i2c devices in OF the modalias exposed to userspace is i2c:<node
> type>, for the Maxtouch driver this is i2c:maxtouch.
>
> Add maxtouch to the i2c id table such that userspace can correctly
> load the module for the device and drop the OF table as it's not
> needed for i2c devices.
>
> Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>

I've tested this and it does work. In fact, it seems that you can use
compatible = "i2c:atmel,maxtouch";

because the "atmel," is ignored in the matching.

Before I could ack this patch, we will need to update this dts file:
arch/arm/boot/dts/s5pv210-goni.dts
and this documentation file:
Documentation/devicetree/bindings/input/atmel,maxtouch.txt

thanks!