Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752537AbcKHCCk (ORCPT ); Mon, 7 Nov 2016 21:02:40 -0500 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:34156 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751752AbcKHCCi (ORCPT ); Mon, 7 Nov 2016 21:02:38 -0500 Subject: Re: [PATCHv7 10/11] mfd: as3722: Rid driver of superfluous I2C device ID structure To: Kieran Bingham , Wolfram Sang , Lee Jones References: <1478522866-29620-1-git-send-email-kieran@bingham.xyz> <1478522866-29620-11-git-send-email-kieran@bingham.xyz> <1ac3a33e-a85c-e781-81b6-c39f3d533da8@osg.samsung.com> Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, sameo@linux.intel.com From: Javier Martinez Canillas Message-ID: Date: Mon, 7 Nov 2016 23:02:31 -0300 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: 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 Content-Length: 2300 Lines: 82 Hello Kieran, On 11/07/2016 07:05 PM, Kieran Bingham wrote: > Thanks for your reviews again Javier, > Thanks to you for keep pushing this series. > On 07/11/16 19:20, Javier Martinez Canillas wrote: >> Hello Kieran, >> >> On 11/07/2016 09:47 AM, Kieran Bingham wrote: >>> From: Lee Jones >>> >>> Also remove unused second probe() parameter 'i2c_device_id'. >>> >>> Acked-by: Grant Likely >>> Signed-off-by: Lee Jones >>> Signed-off-by: Kieran Bingham >>> >>> --- >>> Changes since v4 >>> - Rename .probe2 to probe_new >>> >>> drivers/mfd/as3722.c | 12 ++---------- >>> 1 file changed, 2 insertions(+), 10 deletions(-) >>> >>> diff --git a/drivers/mfd/as3722.c b/drivers/mfd/as3722.c >>> index f87342c211bc..7d8c5e4136e2 100644 >>> --- a/drivers/mfd/as3722.c >>> +++ b/drivers/mfd/as3722.c >>> @@ -354,8 +354,7 @@ static int as3722_i2c_of_probe(struct i2c_client *i2c, >>> return 0; >>> } >>> >>> -static int as3722_i2c_probe(struct i2c_client *i2c, >>> - const struct i2c_device_id *id) >>> +static int as3722_i2c_probe(struct i2c_client *i2c) >>> { >> >> This is OK... >> >>> struct as3722 *as3722; >>> unsigned long irq_flags; >>> @@ -441,12 +440,6 @@ static const struct of_device_id as3722_of_match[] = { >>> }; >>> MODULE_DEVICE_TABLE(of, as3722_of_match); >>> >>> -static const struct i2c_device_id as3722_i2c_id[] = { >>> - { "as3722", 0 }, >>> - {}, >>> -}; >>> -MODULE_DEVICE_TABLE(i2c, as3722_i2c_id); >>> - >> >> ... but I don't think this is correct. Otherwise you will break module >> autoload for this driver since modpost needs the I2C device ID table >> info to fill the i2c modalias in the drivers' module. >> >> Remember that i2c_device_uevent() always reports modalias of the form >> MODALIAS=i2c: even when your series allows to match without a I2C >> device ID table. >> > > Ok - Thanks for the reminder. I'll try to bear this in mind when we > start updating drivers. > > For now we can consider this patch dropped from the series I think. > Yes, or you could just do the change that uses probe_new for now but leave the MODULE_DEVICE_TABLE(). >> Best regards, >> > Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America