]> git.baikalelectronics.ru Git - kernel.git/commit
usb/net: rndis: inline the cpu_to_le32() macro
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 11 May 2012 22:15:39 +0000 (22:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 May 2012 19:00:45 +0000 (15:00 -0400)
commit13ee8d913351b8af51347ea78ca60788a9837e6a
treeaf1fc449dcfa152e55e6b8544ff3102ab4f44891
parent1c3fa4febfdc3cf608b30f897b4ec9705bca2cee
usb/net: rndis: inline the cpu_to_le32() macro

The header file <linux/usb/rndis_host.h> used a number of #defines
that included the cpu_to_le32() macro to assure the result will be
in LE endianness. Inlining this into the code instead of using it
in the code definitions yields consolidation opportunities later
on as you will see in the following patches. The individual
drivers also used local defines - all are switched over to the
pattern of doing the conversion at the call sites instead.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/rndis_host.c
drivers/net/wireless/rndis_wlan.c
include/linux/usb/rndis_host.h