]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: replace UINT64_MAX with U64_MAX
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Fri, 27 Apr 2018 08:18:58 +0000 (16:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Apr 2018 00:18:55 +0000 (20:18 -0400)
commit1e0871aa06f3b38adcda26777575a31d58811e9f
tree2989a15b6960ce6d5d0fbceda1bd13f9f7ad4dfd
parentbe67caa3b872112b3752c9d8a2780135d65be937
drivers: net: replace UINT64_MAX with U64_MAX

U64_MAX is well defined now while the UINT64_MAX is not, so we fall
back to drivers' own definition as below:

#ifndef UINT64_MAX
#define UINT64_MAX             (u64)(~((u64)0))
#endif

I believe this is in one phy driver then copied and pasted to other phy
drivers.

Replace the UINT64_MAX with U64_MAX to clean up the source code.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/phy/bcm-phy-lib.c
drivers/net/phy/marvell.c
drivers/net/phy/micrel.c
drivers/net/phy/smsc.c