Re: [PATCH 1/2] staging/iio: use module_platform_driver macro

2012-07-22 Thread Jonathan Cameron
On 07/21/2012 09:54 AM, Devendra Naga wrote: > the code which under _init and _exit does only the platform_driver_register > and platform_driver_unregister, and nothing else, > so its better to use the module_platform_driver macro rather duplicating > its implementation > > Signed-off-by:

Re: [PATCH 1/2] staging/iio: use module_platform_driver macro

2012-07-22 Thread Jonathan Cameron
On 07/21/2012 09:54 AM, Devendra Naga wrote: the code which under _init and _exit does only the platform_driver_register and platform_driver_unregister, and nothing else, so its better to use the module_platform_driver macro rather duplicating its implementation Signed-off-by: Devendra Naga

[PATCH 1/2] staging/iio: use module_platform_driver macro

2012-07-21 Thread Devendra Naga
the code which under _init and _exit does only the platform_driver_register and platform_driver_unregister, and nothing else, so its better to use the module_platform_driver macro rather duplicating its implementation Signed-off-by: Devendra Naga --- drivers/staging/iio/iio_hwmon.c | 12

[PATCH 1/2] staging/iio: use module_platform_driver macro

2012-07-21 Thread Devendra Naga
the code which under _init and _exit does only the platform_driver_register and platform_driver_unregister, and nothing else, so its better to use the module_platform_driver macro rather duplicating its implementation Signed-off-by: Devendra Naga develkernel412...@gmail.com ---