From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932218AbaIIKVQ (ORCPT ); Tue, 9 Sep 2014 06:21:16 -0400 Received: from bhuna.collabora.co.uk ([93.93.135.160]:34549 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752521AbaIIKVO (ORCPT ); Tue, 9 Sep 2014 06:21:14 -0400 Message-ID: <540ED495.20609@collabora.co.uk> Date: Tue, 09 Sep 2014 12:21:09 +0200 From: Javier Martinez Canillas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Sjoerd Simons , Dmitry Torokhov , Nick Dyer CC: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Lee Jones Subject: Re: [PATCH] Input: atmel_mxt_ts: Add of node type to the i2c table References: <1410249158-18192-1-git-send-email-sjoerd.simons@collabora.co.uk> In-Reply-To: <1410249158-18192-1-git-send-email-sjoerd.simons@collabora.co.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [adding Lee Jones to cc list since I'm referring on a series he posted] Hello Sjoerd, On 09/09/2014 09:52 AM, Sjoerd Simons wrote: > For i2c devices in OF the modalias exposed to userspace is i2c: 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 > --- > drivers/input/touchscreen/atmel_mxt_ts.c | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c > index db178ed..57ff26d 100644 > --- a/drivers/input/touchscreen/atmel_mxt_ts.c > +++ b/drivers/input/touchscreen/atmel_mxt_ts.c > @@ -2267,16 +2267,11 @@ static int mxt_resume(struct device *dev) > > static SIMPLE_DEV_PM_OPS(mxt_pm_ops, mxt_suspend, mxt_resume); > > -static const struct of_device_id mxt_of_match[] = { > - { .compatible = "atmel,maxtouch", }, > - {}, > -}; > -MODULE_DEVICE_TABLE(of, mxt_of_match); > - > static const struct i2c_device_id mxt_id[] = { > { "qt602240_ts", 0 }, > { "atmel_mxt_ts", 0 }, > { "atmel_mxt_tp", 0 }, > + { "maxtouch", 0 }, > { "mXT224", 0 }, > { } > }; > @@ -2286,7 +2281,6 @@ static struct i2c_driver mxt_driver = { > .driver = { > .name = "atmel_mxt_ts", > .owner = THIS_MODULE, > - .of_match_table = of_match_ptr(mxt_of_match), > .pm = &mxt_pm_ops, > }, > .probe = mxt_probe, > I see that Lee is working to allow the I2C subsystem to not need an I2C ID table to match [0]. I'll let Lee to comment what the future plans are and if his series are going to solve your issue since I'm not that familiar with the I2C core. Best regards, Javier [0]: https://lkml.org/lkml/2014/6/20/199