Skip to content

Commit

Permalink
softusb: protect macro arguments in comloc.h
Browse files Browse the repository at this point in the history
This change is purely cosmetic.
  • Loading branch information
wpwrak authored and Sebastien Bourdeauducq committed Nov 30, 2011
1 parent 98be89d commit b452f54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions softusb-input/comloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
#define COMLOCV(x) (*(volatile unsigned char *)(x))

#define COMLOC_DEBUG_PRODUCE COMLOC(0x1000)
#define COMLOC_DEBUG(offset) COMLOC(0x1001+offset)
#define COMLOC_DEBUG(offset) COMLOC(0x1001+(offset))
#define COMLOC_MEVT_PRODUCE COMLOC(0x1101)
#define COMLOC_MEVT(offset) COMLOC(0x1102+offset)
#define COMLOC_MEVT(offset) COMLOC(0x1102+(offset))
#define COMLOC_KEVT_PRODUCE COMLOC(0x1142)
#define COMLOC_KEVT(offset) COMLOC(0x1143+offset)
#define COMLOC_KEVT(offset) COMLOC(0x1143+(offset))

#endif /* __COMLOC_H */

0 comments on commit b452f54

Please sign in to comment.