From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965166AbcJQPzv (ORCPT ); Mon, 17 Oct 2016 11:55:51 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:44256 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965112AbcJQPzk (ORCPT ); Mon, 17 Oct 2016 11:55:40 -0400 Subject: Re: [PATCH v4 7/8] drivers:input:ads7846(+tsc2046): fix spi module table To: "H. Nikolaus Schaller" , Dmitry Torokhov , Rob Herring , Mark Rutland , =?UTF-8?Q?Beno=c3=aet_Cousson?= , Tony Lindgren , Russell King , Arnd Bergmann , Michael Welling , =?UTF-8?Q?Mika_Penttil=c3=a4?= , Javier Martinez Canillas , Igor Grinberg , Sebastian Reichel , Mark Brown , Jonathan Cameron References: <70cc986f3cf98dd89f0460b5042083aad58a7366.1476712675.git.hns@goldelico.com> CC: , , , , , , From: "Andrew F. Davis" Message-ID: Date: Mon, 17 Oct 2016 10:54:03 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <70cc986f3cf98dd89f0460b5042083aad58a7366.1476712675.git.hns@goldelico.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/17/2016 08:57 AM, H. Nikolaus Schaller wrote: > Fix module table so that the driver is loaded if compiled > as module and requested by DT. > > Signed-off-by: H. Nikolaus Schaller > --- > drivers/input/touchscreen/ads7846.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c > index 400e421..9a5d84d 100644 > --- a/drivers/input/touchscreen/ads7846.c > +++ b/drivers/input/touchscreen/ads7846.c > @@ -1532,6 +1532,17 @@ static int ads7846_remove(struct spi_device *spi) > return 0; > } > > +static const struct spi_device_id ads7846_idtable[] = { > + { "tsc2046", 0 }, > + { "ads7843", 0 }, > + { "ads7845", 0 }, > + { "ads7846", 0 }, > + { "ads7873", 0 }, > + { } > +}; > + no space needed > +MODULE_DEVICE_TABLE(spi, ads7846_idtable); > + > static struct spi_driver ads7846_driver = { > .driver = { > .name = "ads7846", > the MODULE_ALIAS below can now also be removed with this patch.