Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1516736
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHv7 10/11] mfd: as3722: Rid driver of superfluous I2C device ID structure |
| Date | 2016-11-08 03:10 +0100 |
| Message-ID | <sB41j-366-19@gated-at.bofh.it> (permalink) |
| References | <sARx7-3aL-3@gated-at.bofh.it> <sARx7-3aL-9@gated-at.bofh.it> <sAXMe-7uI-23@gated-at.bofh.it> <sB0h3-If-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 <lee.jones@linaro.org>
>>>
>>> Also remove unused second probe() parameter 'i2c_device_id'.
>>>
>>> Acked-by: Grant Likely <grant.likely@linaro.org>
>>> Signed-off-by: Lee Jones <lee.jones@linaro.org>
>>> Signed-off-by: Kieran Bingham <kieran@bingham.xyz>
>>>
>>> ---
>>> 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:<foo> 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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHv7 10/11] mfd: as3722: Rid driver of superfluous I2C device ID structure Kieran Bingham <kieran@ksquared.org.uk> - 2016-11-07 13:50 +0100
Re: [PATCHv7 10/11] mfd: as3722: Rid driver of superfluous I2C device ID structure Javier Martinez Canillas <javier@osg.samsung.com> - 2016-11-07 20:30 +0100
Re: [PATCHv7 10/11] mfd: as3722: Rid driver of superfluous I2C device ID structure Kieran Bingham <kieran@ksquared.org.uk> - 2016-11-07 23:10 +0100
Re: [PATCHv7 10/11] mfd: as3722: Rid driver of superfluous I2C device ID structure Javier Martinez Canillas <javier@osg.samsung.com> - 2016-11-08 03:10 +0100
Re: [PATCHv7 10/11] mfd: as3722: Rid driver of superfluous I2C device ID structure Wolfram Sang <wsa@the-dreams.de> - 2016-11-08 00:20 +0100
Re: [PATCHv7 10/11] mfd: as3722: Rid driver of superfluous I2C device ID structure Javier Martinez Canillas <javier@osg.samsung.com> - 2016-11-08 03:20 +0100
csiph-web