* [PATCH] Input: cap11xx - fix module alias @ 2015-01-30 1:28 Axel Lin 2015-01-30 1:36 ` Matt Ranostay 0 siblings, 1 reply; 4+ messages in thread From: Axel Lin @ 2015-01-30 1:28 UTC (permalink / raw) To: Dmitry Torokhov; +Cc: Matt Ranostay, Daniel Mack, linux-input@vger.kernel.org This is a I2C driver, so use i2c prefix for the module alias. Signed-off-by: Axel Lin <axel.lin@ingics.com> --- drivers/input/keyboard/cap11xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/cap11xx.c b/drivers/input/keyboard/cap11xx.c index 4f59f0b..938f0d5 100644 --- a/drivers/input/keyboard/cap11xx.c +++ b/drivers/input/keyboard/cap11xx.c @@ -370,7 +370,7 @@ static struct i2c_driver cap11xx_i2c_driver = { module_i2c_driver(cap11xx_i2c_driver); -MODULE_ALIAS("platform:cap11xx"); +MODULE_ALIAS("i2c:cap11xx"); MODULE_DESCRIPTION("Microchip CAP11XX driver"); MODULE_AUTHOR("Daniel Mack <linux@zonque.org>"); MODULE_LICENSE("GPL v2"); -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Input: cap11xx - fix module alias 2015-01-30 1:28 [PATCH] Input: cap11xx - fix module alias Axel Lin @ 2015-01-30 1:36 ` Matt Ranostay 2015-01-30 1:47 ` Dmitry Torokhov 0 siblings, 1 reply; 4+ messages in thread From: Matt Ranostay @ 2015-01-30 1:36 UTC (permalink / raw) To: Axel Lin; +Cc: Dmitry Torokhov, Daniel Mack, linux-input@vger.kernel.org Signed-off-by: Matt Ranostay <mranostay@gmail.com> On Thu, Jan 29, 2015 at 5:28 PM, Axel Lin <axel.lin@ingics.com> wrote: > This is a I2C driver, so use i2c prefix for the module alias. > > Signed-off-by: Axel Lin <axel.lin@ingics.com> > --- > drivers/input/keyboard/cap11xx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/keyboard/cap11xx.c b/drivers/input/keyboard/cap11xx.c > index 4f59f0b..938f0d5 100644 > --- a/drivers/input/keyboard/cap11xx.c > +++ b/drivers/input/keyboard/cap11xx.c > @@ -370,7 +370,7 @@ static struct i2c_driver cap11xx_i2c_driver = { > > module_i2c_driver(cap11xx_i2c_driver); > > -MODULE_ALIAS("platform:cap11xx"); > +MODULE_ALIAS("i2c:cap11xx"); > MODULE_DESCRIPTION("Microchip CAP11XX driver"); > MODULE_AUTHOR("Daniel Mack <linux@zonque.org>"); > MODULE_LICENSE("GPL v2"); > -- > 1.9.1 > > > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Input: cap11xx - fix module alias 2015-01-30 1:36 ` Matt Ranostay @ 2015-01-30 1:47 ` Dmitry Torokhov 2015-01-30 2:50 ` Matt Ranostay 0 siblings, 1 reply; 4+ messages in thread From: Dmitry Torokhov @ 2015-01-30 1:47 UTC (permalink / raw) To: Matt Ranostay; +Cc: Axel Lin, Daniel Mack, linux-input@vger.kernel.org Hi, On Thursday, January 29, 2015 05:36:22 PM Matt Ranostay wrote: > Signed-off-by: Matt Ranostay <mranostay@gmail.com> Why signed off? Were you involved in writing this code? Reviewed-by or Acked- by are more appropriate here I think. > > On Thu, Jan 29, 2015 at 5:28 PM, Axel Lin <axel.lin@ingics.com> wrote: > > This is a I2C driver, so use i2c prefix for the module alias. > > > > Signed-off-by: Axel Lin <axel.lin@ingics.com> > > --- > > > > drivers/input/keyboard/cap11xx.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/input/keyboard/cap11xx.c > > b/drivers/input/keyboard/cap11xx.c index 4f59f0b..938f0d5 100644 > > --- a/drivers/input/keyboard/cap11xx.c > > +++ b/drivers/input/keyboard/cap11xx.c > > @@ -370,7 +370,7 @@ static struct i2c_driver cap11xx_i2c_driver = { > > > > module_i2c_driver(cap11xx_i2c_driver); > > > > -MODULE_ALIAS("platform:cap11xx"); This is clearly incorrect. > > +MODULE_ALIAS("i2c:cap11xx"); However I do not see what this gives us. I see: dtor@dtor-ws:~/kernel/work$ modinfo drivers/input/keyboard/cap11xx.ko filename: /usr/local/google/home/dtor/kernel/work/drivers/input/keyboard/cap11xx.ko license: GPL v2 author: Daniel Mack <linux@zonque.org> description: Microchip CAP11XX driver alias: platform:cap11xx alias: of:N*T*Cmicrochip,cap1188* alias: of:N*T*Cmicrochip,cap1126* alias: of:N*T*Cmicrochip,cap1106* alias: i2c:cap1188 alias: i2c:cap1126 alias: i2c:cap1106 depends: i2c-core,regmap-i2c intree: Y vermagic: 3.19.0-rc6+ SMP preempt mod_unload So it looks like we have all needed i2c aliases coming form MODULE_DEVICE_TABLE. > > > > MODULE_DESCRIPTION("Microchip CAP11XX driver"); > > MODULE_AUTHOR("Daniel Mack <linux@zonque.org>"); > > MODULE_LICENSE("GPL v2"); > > > > -- > > 1.9.1 Thanks. -- Dmitry ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Input: cap11xx - fix module alias 2015-01-30 1:47 ` Dmitry Torokhov @ 2015-01-30 2:50 ` Matt Ranostay 0 siblings, 0 replies; 4+ messages in thread From: Matt Ranostay @ 2015-01-30 2:50 UTC (permalink / raw) To: Dmitry Torokhov; +Cc: Axel Lin, Daniel Mack, linux-input@vger.kernel.org Oops sorry been awhile since I have been CC'ed on patchsets upstream. Forgot the etiquette on this :/. Fixed Reviewed-by: Matt Ranostay <mranostay@gmail.com> On Thu, Jan 29, 2015 at 5:47 PM, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote: > Hi, > > On Thursday, January 29, 2015 05:36:22 PM Matt Ranostay wrote: >> Signed-off-by: Matt Ranostay <mranostay@gmail.com> > > Why signed off? Were you involved in writing this code? Reviewed-by or Acked- > by are more appropriate here I think. > >> >> On Thu, Jan 29, 2015 at 5:28 PM, Axel Lin <axel.lin@ingics.com> wrote: >> > This is a I2C driver, so use i2c prefix for the module alias. >> > >> > Signed-off-by: Axel Lin <axel.lin@ingics.com> >> > --- >> > >> > drivers/input/keyboard/cap11xx.c | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/drivers/input/keyboard/cap11xx.c >> > b/drivers/input/keyboard/cap11xx.c index 4f59f0b..938f0d5 100644 >> > --- a/drivers/input/keyboard/cap11xx.c >> > +++ b/drivers/input/keyboard/cap11xx.c >> > @@ -370,7 +370,7 @@ static struct i2c_driver cap11xx_i2c_driver = { >> > >> > module_i2c_driver(cap11xx_i2c_driver); >> > >> > -MODULE_ALIAS("platform:cap11xx"); > > This is clearly incorrect. > >> > +MODULE_ALIAS("i2c:cap11xx"); > > However I do not see what this gives us. I see: > > dtor@dtor-ws:~/kernel/work$ modinfo drivers/input/keyboard/cap11xx.ko > filename: > /usr/local/google/home/dtor/kernel/work/drivers/input/keyboard/cap11xx.ko > license: GPL v2 > author: Daniel Mack <linux@zonque.org> > description: Microchip CAP11XX driver > alias: platform:cap11xx > alias: of:N*T*Cmicrochip,cap1188* > alias: of:N*T*Cmicrochip,cap1126* > alias: of:N*T*Cmicrochip,cap1106* > alias: i2c:cap1188 > alias: i2c:cap1126 > alias: i2c:cap1106 > depends: i2c-core,regmap-i2c > intree: Y > vermagic: 3.19.0-rc6+ SMP preempt mod_unload > > So it looks like we have all needed i2c aliases coming form > MODULE_DEVICE_TABLE. > >> > >> > MODULE_DESCRIPTION("Microchip CAP11XX driver"); >> > MODULE_AUTHOR("Daniel Mack <linux@zonque.org>"); >> > MODULE_LICENSE("GPL v2"); >> > >> > -- >> > 1.9.1 > > Thanks. > > -- > Dmitry ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-30 2:50 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-01-30 1:28 [PATCH] Input: cap11xx - fix module alias Axel Lin 2015-01-30 1:36 ` Matt Ranostay 2015-01-30 1:47 ` Dmitry Torokhov 2015-01-30 2:50 ` Matt Ranostay
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox