Re: [PATCH 2/2] eeprom: at24: use a common prefix for all symbols in at24.c
From: Bartosz Golaszewski
Date: Wed Dec 06 2017 - 06:05:49 EST
2017-12-06 12:03 GMT+01:00 Uwe Kleine-KÃnig <u.kleine-koenig@xxxxxxxxxxxxxx>:
> On Wed, Dec 06, 2017 at 11:19:26AM +0100, Bartosz Golaszewski wrote:
>> There are a couple symbols defined in the driver source file which are
>> missing the at24_ prefix. This patch fixes that.
>>
>> Signed-off-by: Bartosz Golaszewski <brgl@xxxxxxxx>
>> ---
>> drivers/misc/eeprom/at24.c | 34 ++++++++++++++++++----------------
>> 1 file changed, 18 insertions(+), 16 deletions(-)
>>
>> diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
>> index 2426f2c111c7..4ead21d0dcc5 100644
>> --- a/drivers/misc/eeprom/at24.c
>> +++ b/drivers/misc/eeprom/at24.c
>> @@ -93,17 +93,17 @@ struct at24_data {
>> *
>> * This value is forced to be a power of two so that writes align on pages.
>> */
>> -static unsigned int io_limit = 128;
>> -module_param(io_limit, uint, 0000);
>> -MODULE_PARM_DESC(io_limit, "Maximum bytes per I/O (default 128)");
>> +static unsigned int at24_io_limit = 128;
>> +module_param(at24_io_limit, uint, 0000);
>> +MODULE_PARM_DESC(at24_io_limit, "Maximum bytes per I/O (default 128)");
>
> You change the names of the module parameters here. I think this is not
> a good idea as now you have to pass
>
> at24.at24_io_limit=...
>
> on the kernel command line. If you still want this change, I think there
> is some documentation that needs adaption, too.
>
> Best regards
> Uwe
>
>
> --
> Pengutronix e.K. | Uwe Kleine-KÃnig |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
Ugh, right, this must stay as it was. Thanks!
Bartosz