From 84286f191a01f198ccfc15759d01320e3847accd Mon Sep 17 00:00:00 2001 From: Michael Grzeschik Date: Wed, 15 Apr 2015 11:43:57 +0200 Subject: 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 --- drivers/net/arcnet/com20020.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/net/arcnet/com20020.h') 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 */ -- cgit v1.2.3