* [PATCH] USB: remove info() macro from usb input drivers
@ 2008-10-10 5:03 Greg KH
[not found] ` <20081010050305.GA32476-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2008-10-10 5:03 UTC (permalink / raw)
To: dmitry.torokhov, dtor; +Cc: linux-input, linux-usb
From: Greg Kroah-Hartman <gregkh@suse.de>
USB should not be having it's own printk macros, so remove info() and
use the system-wide standard of dev_info() wherever possible.
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
Dmitry, this has been in the USB tree for a few months now, sorry for
not sending it to you sooner. I can easily keep it in my tree and send
it to Linus for this merge if you want me to, or you can take it in your
tree, which ever you want me to do.
thanks,
greg k-h
drivers/input/joystick/xpad.c | 2 +-
drivers/input/misc/ati_remote.c | 6 ++++--
drivers/input/misc/yealink.c | 3 ++-
drivers/input/tablet/acecad.c | 3 ++-
drivers/input/tablet/aiptek.c | 13 ++++++++-----
drivers/input/tablet/gtco.c | 4 ++--
drivers/input/tablet/kbtab.c | 3 ++-
drivers/input/tablet/wacom_sys.c | 3 ++-
8 files changed, 23 insertions(+), 14 deletions(-)
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -911,7 +911,7 @@ static int __init usb_xpad_init(void)
{
int result = usb_register(&xpad_driver);
if (result == 0)
- info(DRIVER_DESC);
+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n");
return result;
}
--- a/drivers/input/misc/ati_remote.c
+++ b/drivers/input/misc/ati_remote.c
@@ -834,9 +834,11 @@ static int __init ati_remote_init(void)
result = usb_register(&ati_remote_driver);
if (result)
- err("usb_register error #%d\n", result);
+ printk(KERN_ERR KBUILD_MODNAME
+ ": usb_register error #%d\n", result);
else
- info("Registered USB driver " DRIVER_DESC " v. " DRIVER_VERSION);
+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
+ DRIVER_DESC "\n");
return result;
}
--- a/drivers/input/misc/yealink.c
+++ b/drivers/input/misc/yealink.c
@@ -999,7 +999,8 @@ static int __init yealink_dev_init(void)
{
int ret = usb_register(&yealink_driver);
if (ret == 0)
- info(DRIVER_DESC ":" DRIVER_VERSION);
+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
+ DRIVER_DESC "\n");
return ret;
}
--- a/drivers/input/tablet/acecad.c
+++ b/drivers/input/tablet/acecad.c
@@ -280,7 +280,8 @@ static int __init usb_acecad_init(void)
{
int result = usb_register(&usb_acecad_driver);
if (result == 0)
- info(DRIVER_VERSION ":" DRIVER_DESC);
+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
+ DRIVER_DESC "\n");
return result;
}
--- a/drivers/input/tablet/aiptek.c
+++ b/drivers/input/tablet/aiptek.c
@@ -1821,8 +1821,9 @@ aiptek_probe(struct usb_interface *intf,
aiptek->curSetting.programmableDelay = speeds[i];
(void)aiptek_program_tablet(aiptek);
if (aiptek->inputdev->absmax[ABS_X] > 0) {
- info("input: Aiptek using %d ms programming speed\n",
- aiptek->curSetting.programmableDelay);
+ dev_info(&intf->dev,
+ "Aiptek using %d ms programming speed\n",
+ aiptek->curSetting.programmableDelay);
break;
}
}
@@ -1830,7 +1831,8 @@ aiptek_probe(struct usb_interface *intf,
/* Murphy says that some day someone will have a tablet that fails the
above test. That's you, Frederic Rodrigo */
if (i == ARRAY_SIZE(speeds)) {
- info("input: Aiptek tried all speeds, no sane response");
+ dev_info(&intf->dev,
+ "Aiptek tried all speeds, no sane response\n");
goto fail2;
}
@@ -1902,8 +1904,9 @@ static int __init aiptek_init(void)
{
int result = usb_register(&aiptek_driver);
if (result == 0) {
- info(DRIVER_VERSION ": " DRIVER_AUTHOR);
- info(DRIVER_DESC);
+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
+ DRIVER_DESC "\n");
+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_AUTHOR "\n");
}
return result;
}
--- a/drivers/input/tablet/gtco.c
+++ b/drivers/input/tablet/gtco.c
@@ -2,7 +2,7 @@
GTCO digitizer USB driver
-Use the err(), dbg() and info() macros from usb.h for system logging
+Use the err() and dbg() macros from usb.h for system logging
TO CHECK: Is pressure done right on report 5?
@@ -1010,7 +1010,7 @@ static void gtco_disconnect(struct usb_i
kfree(gtco);
}
- info("gtco driver disconnected");
+ dev_info(&interface->dev, "gtco driver disconnected\n");
}
/* STANDARD MODULE LOAD ROUTINES */
--- a/drivers/input/tablet/kbtab.c
+++ b/drivers/input/tablet/kbtab.c
@@ -215,7 +215,8 @@ static int __init kbtab_init(void)
retval = usb_register(&kbtab_driver);
if (retval)
goto out;
- info(DRIVER_VERSION ":" DRIVER_DESC);
+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
+ DRIVER_DESC "\n");
out:
return retval;
}
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -385,7 +385,8 @@ static int __init wacom_init(void)
wacom_driver.id_table = get_device_table();
result = usb_register(&wacom_driver);
if (result == 0)
- info(DRIVER_VERSION ":" DRIVER_DESC);
+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
+ DRIVER_DESC "\n");
return result;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] USB: remove info() macro from usb input drivers
[not found] ` <20081010050305.GA32476-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
@ 2008-10-10 13:42 ` Dmitry Torokhov
2008-10-10 15:52 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2008-10-10 13:42 UTC (permalink / raw)
To: Greg KH
Cc: linux-input-u79uwXL29TY76Z2rM5mHXA,
linux-usb-u79uwXL29TY76Z2rM5mHXA
On Thu, Oct 09, 2008 at 10:03:05PM -0700, Greg KH wrote:
> From: Greg Kroah-Hartman <gregkh-l3A5Bk7waGM@public.gmane.org>
>
> USB should not be having it's own printk macros, so remove info() and
> use the system-wide standard of dev_info() wherever possible.
>
> Cc: Dmitry Torokhov <dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Signed-off-by: Greg Kroah-Hartman <gregkh-l3A5Bk7waGM@public.gmane.org>
>
> ---
> Dmitry, this has been in the USB tree for a few months now, sorry for
> not sending it to you sooner. I can easily keep it in my tree and send
> it to Linus for this merge if you want me to, or you can take it in your
> tree, which ever you want me to do.
>
Greg, just push it through your tree since it's already there. I don't
think we have any clashes in this code.
Thanks.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] USB: remove info() macro from usb input drivers
2008-10-10 13:42 ` Dmitry Torokhov
@ 2008-10-10 15:52 ` Greg KH
2008-10-10 16:11 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2008-10-10 15:52 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-input, linux-usb
On Fri, Oct 10, 2008 at 09:42:07AM -0400, Dmitry Torokhov wrote:
> On Thu, Oct 09, 2008 at 10:03:05PM -0700, Greg KH wrote:
> > From: Greg Kroah-Hartman <gregkh@suse.de>
> >
> > USB should not be having it's own printk macros, so remove info() and
> > use the system-wide standard of dev_info() wherever possible.
> >
> > Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> >
> > ---
> > Dmitry, this has been in the USB tree for a few months now, sorry for
> > not sending it to you sooner. I can easily keep it in my tree and send
> > it to Linus for this merge if you want me to, or you can take it in your
> > tree, which ever you want me to do.
> >
>
> Greg, just push it through your tree since it's already there. I don't
> think we have any clashes in this code.
Great, thanks for letting me know.
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] USB: remove info() macro from usb input drivers
2008-10-10 15:52 ` Greg KH
@ 2008-10-10 16:11 ` David Miller
[not found] ` <20081010.091139.264833623.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2008-10-10 16:11 UTC (permalink / raw)
To: greg; +Cc: dmitry.torokhov, linux-input, linux-usb
From: Greg KH <greg@kroah.com>
Date: Fri, 10 Oct 2008 08:52:21 -0700
> On Fri, Oct 10, 2008 at 09:42:07AM -0400, Dmitry Torokhov wrote:
> > On Thu, Oct 09, 2008 at 10:03:05PM -0700, Greg KH wrote:
> > > From: Greg Kroah-Hartman <gregkh@suse.de>
> > >
> > > USB should not be having it's own printk macros, so remove info() and
> > > use the system-wide standard of dev_info() wherever possible.
> > >
> > > Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> > >
> > > ---
> > > Dmitry, this has been in the USB tree for a few months now, sorry for
> > > not sending it to you sooner. I can easily keep it in my tree and send
> > > it to Linus for this merge if you want me to, or you can take it in your
> > > tree, which ever you want me to do.
> > >
> >
> > Greg, just push it through your tree since it's already there. I don't
> > think we have any clashes in this code.
>
> Great, thanks for letting me know.
Right, and Jeff is away until next week so even more reason for you to
take care of it via the USB tree :-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] USB: remove info() macro from usb input drivers
[not found] ` <20081010.091139.264833623.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
@ 2008-10-10 16:20 ` Greg KH
0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2008-10-10 16:20 UTC (permalink / raw)
To: David Miller
Cc: dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w,
linux-input-u79uwXL29TY76Z2rM5mHXA,
linux-usb-u79uwXL29TY76Z2rM5mHXA
On Fri, Oct 10, 2008 at 09:11:39AM -0700, David Miller wrote:
> From: Greg KH <greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
> Date: Fri, 10 Oct 2008 08:52:21 -0700
>
> > On Fri, Oct 10, 2008 at 09:42:07AM -0400, Dmitry Torokhov wrote:
> > > On Thu, Oct 09, 2008 at 10:03:05PM -0700, Greg KH wrote:
> > > > From: Greg Kroah-Hartman <gregkh-l3A5Bk7waGM@public.gmane.org>
> > > >
> > > > USB should not be having it's own printk macros, so remove info() and
> > > > use the system-wide standard of dev_info() wherever possible.
> > > >
> > > > Cc: Dmitry Torokhov <dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > > > Signed-off-by: Greg Kroah-Hartman <gregkh-l3A5Bk7waGM@public.gmane.org>
> > > >
> > > > ---
> > > > Dmitry, this has been in the USB tree for a few months now, sorry for
> > > > not sending it to you sooner. I can easily keep it in my tree and send
> > > > it to Linus for this merge if you want me to, or you can take it in your
> > > > tree, which ever you want me to do.
> > > >
> > >
> > > Greg, just push it through your tree since it's already there. I don't
> > > think we have any clashes in this code.
> >
> > Great, thanks for letting me know.
>
> Right, and Jeff is away until next week so even more reason for you to
> take care of it via the USB tree :-)
Hm, which one, the patch for the drivers/net/ tree? I'll push that as
well due to him being gone, thanks for reminding me.
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-10 16:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-10 5:03 [PATCH] USB: remove info() macro from usb input drivers Greg KH
[not found] ` <20081010050305.GA32476-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2008-10-10 13:42 ` Dmitry Torokhov
2008-10-10 15:52 ` Greg KH
2008-10-10 16:11 ` David Miller
[not found] ` <20081010.091139.264833623.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2008-10-10 16:20 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).