Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-24 Thread Javier Martinez Canillas
Hello Arnd, On 02/24/2016 01:56 PM, Arnd Bergmann wrote: On Tuesday 16 February 2016 21:19:07 Eddie Huang wrote: On Tue, 2016-02-16 at 12:37 +0100, Arnd Bergmann wrote: On Monday 15 February 2016 11:50:48 Javier Martinez Canillas wrote: On 02/14/2016 10:58 PM, Eddie Huang wrote: [snip]

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-24 Thread Javier Martinez Canillas
Hello Arnd, On 02/24/2016 01:56 PM, Arnd Bergmann wrote: On Tuesday 16 February 2016 21:19:07 Eddie Huang wrote: On Tue, 2016-02-16 at 12:37 +0100, Arnd Bergmann wrote: On Monday 15 February 2016 11:50:48 Javier Martinez Canillas wrote: On 02/14/2016 10:58 PM, Eddie Huang wrote: [snip]

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-24 Thread Arnd Bergmann
On Tuesday 16 February 2016 21:19:07 Eddie Huang wrote: > On Tue, 2016-02-16 at 12:37 +0100, Arnd Bergmann wrote: > > On Monday 15 February 2016 11:50:48 Javier Martinez Canillas wrote: > > > > > > On 02/14/2016 10:58 PM, Eddie Huang wrote: > > > > > > [snip] > > > > > > >> @@ -412,6 +418,7 @@

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-24 Thread Arnd Bergmann
On Tuesday 16 February 2016 21:19:07 Eddie Huang wrote: > On Tue, 2016-02-16 at 12:37 +0100, Arnd Bergmann wrote: > > On Monday 15 February 2016 11:50:48 Javier Martinez Canillas wrote: > > > > > > On 02/14/2016 10:58 PM, Eddie Huang wrote: > > > > > > [snip] > > > > > > >> @@ -412,6 +418,7 @@

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-16 Thread Eddie Huang
On Tue, 2016-02-16 at 12:37 +0100, Arnd Bergmann wrote: > On Monday 15 February 2016 11:50:48 Javier Martinez Canillas wrote: > > > > On 02/14/2016 10:58 PM, Eddie Huang wrote: > > > > [snip] > > > > >> @@ -412,6 +418,7 @@ static struct platform_driver mtk_rtc_driver = { > > >> }, > > >>

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-16 Thread Eddie Huang
On Tue, 2016-02-16 at 12:37 +0100, Arnd Bergmann wrote: > On Monday 15 February 2016 11:50:48 Javier Martinez Canillas wrote: > > > > On 02/14/2016 10:58 PM, Eddie Huang wrote: > > > > [snip] > > > > >> @@ -412,6 +418,7 @@ static struct platform_driver mtk_rtc_driver = { > > >> }, > > >>

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-16 Thread Arnd Bergmann
On Monday 15 February 2016 11:50:48 Javier Martinez Canillas wrote: > > On 02/14/2016 10:58 PM, Eddie Huang wrote: > > [snip] > > >> @@ -412,6 +418,7 @@ static struct platform_driver mtk_rtc_driver = { > >> }, > >> .probe = mtk_rtc_probe, > >> .remove = mtk_rtc_remove, > >> +

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-16 Thread Arnd Bergmann
On Monday 15 February 2016 11:50:48 Javier Martinez Canillas wrote: > > On 02/14/2016 10:58 PM, Eddie Huang wrote: > > [snip] > > >> @@ -412,6 +418,7 @@ static struct platform_driver mtk_rtc_driver = { > >> }, > >> .probe = mtk_rtc_probe, > >> .remove = mtk_rtc_remove, > >> +

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-15 Thread Javier Martinez Canillas
Hello Eddie, On 02/14/2016 10:58 PM, Eddie Huang wrote: [snip] @@ -412,6 +418,7 @@ static struct platform_driver mtk_rtc_driver = { }, .probe = mtk_rtc_probe, .remove = mtk_rtc_remove, + .id_table = mt6397_rtc_id, }; module_platform_driver(mtk_rtc_driver);

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-15 Thread Javier Martinez Canillas
Hello Eddie, On 02/14/2016 10:58 PM, Eddie Huang wrote: [snip] @@ -412,6 +418,7 @@ static struct platform_driver mtk_rtc_driver = { }, .probe = mtk_rtc_probe, .remove = mtk_rtc_remove, + .id_table = mt6397_rtc_id, }; module_platform_driver(mtk_rtc_driver);

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-14 Thread Eddie Huang
On Tue, 2016-02-09 at 08:08 -0300, Javier Martinez Canillas wrote: > The platform bus_type .match callback attempts to match the platform device > name with an entry on the .id_table if provided and fallbacks to match with > the driver's name if a table is not provided. > > Using a platform

Re: [PATCH] rtc: mt6397: Add platform device ID table

2016-02-14 Thread Eddie Huang
On Tue, 2016-02-09 at 08:08 -0300, Javier Martinez Canillas wrote: > The platform bus_type .match callback attempts to match the platform device > name with an entry on the .id_table if provided and fallbacks to match with > the driver's name if a table is not provided. > > Using a platform

[PATCH] rtc: mt6397: Add platform device ID table

2016-02-09 Thread Javier Martinez Canillas
The platform bus_type .match callback attempts to match the platform device name with an entry on the .id_table if provided and fallbacks to match with the driver's name if a table is not provided. Using a platform device ID to match is more explicit, allows the driver to support more than one

[PATCH] rtc: mt6397: Add platform device ID table

2016-02-09 Thread Javier Martinez Canillas
The platform bus_type .match callback attempts to match the platform device name with an entry on the .id_table if provided and fallbacks to match with the driver's name if a table is not provided. Using a platform device ID to match is more explicit, allows the driver to support more than one