diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2015-04-15 11:43:57 +0200 |
---|---|---|
committer | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2015-09-23 08:44:28 +0200 |
commit | 84286f191a01f198ccfc15759d01320e3847accd (patch) | |
tree | ec40ec6e0decf8e2c4b878cf737a715718020ee0 /drivers/net/arcnet/com20020.h | |
parent | 54a84c61823e2069da2c7ad91518ff7625129ce5 (diff) |
arcnet: com20020: replace magic numbers with readable macros
This patch replaces all magic numbers in the driver with
proper named macros. For the case of XTOcfg and STARTIOcmd
it introduces the new macros.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Diffstat (limited to 'drivers/net/arcnet/com20020.h')
-rw-r--r-- | drivers/net/arcnet/com20020.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/arcnet/com20020.h b/drivers/net/arcnet/com20020.h index ffb19464b607..22a460f39fb9 100644 --- a/drivers/net/arcnet/com20020.h +++ b/drivers/net/arcnet/com20020.h @@ -86,6 +86,7 @@ struct com20020_dev { /* in the CONFIG register */ #define RESETcfg 0x80 /* put card in reset state */ #define TXENcfg 0x20 /* enable TX */ +#define XTOcfg(x) ((x) << 3) /* extended timeout */ /* in SETUP register */ #define PROMISCset 0x10 /* enable RCV_ALL */ |