]> git.karo-electronics.de Git - linux-beck.git/commit
usb: host: ehci-dbg: convert macro to inline function
authorGeyslan G. Bem <geyslan@gmail.com>
Tue, 26 Jan 2016 01:45:02 +0000 (22:45 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 21:44:05 +0000 (13:44 -0800)
commit1f8e5afdb28510eda75700e5c12af03550c10a8d
tree050e8521b43326d81f2d4f91fbcab8a659c9f249
parente1666317d8c543b80cedacece72ebb17d80e2994
usb: host: ehci-dbg: convert macro to inline function

This patch converts macros into inline functions since the usage of
second is encouraged by Coding Style instead of the first.

Macros converted to functions:
 - dbg_status
 - dbg_cmd
 - dbg_port
 - speed_char

The size after changes remains the same.

Before:
text  data bss dec   hex  filename
36920 81   12  37013 9095 drivers/usb/host/ehci-hcd.o

After:
text  data bss dec   hex  filename
36920 81   12  37013 9095 drivers/usb/host/ehci-hcd.o

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-dbg.c