]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: use %pI4, remove get_{u8/u16/u32} and put_{u8/u16/u32} inlines
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 14 Nov 2008 06:41:29 +0000 (22:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Nov 2008 06:41:29 +0000 (22:41 -0800)
commit99116ed287060a65c8afdb711c02d08eb9b313a9
treece16dea6960f9d745120941c6bd32b3ca5abe769
parent274e7c2a51a2f2367c8dde77639bd25638e386c5
isdn: use %pI4, remove get_{u8/u16/u32} and put_{u8/u16/u32} inlines

They would have been better named as get_be16, put_be16, etc.
as they were hiding an endian shift inside.

They don't add much over explicitly coding the byteshifting
and gcc sometimes has a problem with builtin_constant_p inside
inline functions, so it may do a better job of byteswapping
at compile time rather than runtime.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/i4l/isdn_net.c
drivers/isdn/i4l/isdn_net.h