]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: ci13xxx: replace home-brewed logging with dev_{err,warn,info}
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Tue, 8 May 2012 20:29:02 +0000 (23:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2012 22:00:26 +0000 (15:00 -0700)
commit1bcf67c56249e69de92a6af1bbec80937d9f741f
treed5637886cb65cd949fc2388fefcd52b387e27da1
parent9921183c8cd4c2e04638983f9bd3fd2775aaab13
usb: gadget: ci13xxx: replace home-brewed logging with dev_{err,warn,info}

Logging output in the driver is mostly done using custom err/warn/info
macros which rely on the existence of the global variable _udc, which
is a global reference to the udc controller structure. This reference
will have to go in order to allow us to have more than one chipidea udc
in the system.

Thus, replace custom macros with dev_{err,warn,info} using the platform
device where possible. The trace() macro, which is a nop by default is
left for tracing purposes.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/ci13xxx_udc.c
drivers/usb/gadget/ci13xxx_udc.h