Skip to content

Commit

Permalink
remove the obsolete BCD*BIN/BIN*BCD macros
Browse files Browse the repository at this point in the history
Remove the following obsolete macros:

- BCD2BIN
- BIN2BCD
- BCD_TO_BIN
- BIN_TO_BCD

Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and torvalds committed Oct 20, 2008
1 parent 2cee5df commit a0098ef
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/linux/bcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,4 @@
unsigned bcd2bin(unsigned char val) __attribute_const__;
unsigned char bin2bcd(unsigned val) __attribute_const__;

#define BCD2BIN(val) bcd2bin(val)
#define BIN2BCD(val) bin2bcd(val)

/* backwards compat */
#define BCD_TO_BIN(val) ((val)=BCD2BIN(val))
#define BIN_TO_BCD(val) ((val)=BIN2BCD(val))

#endif /* _BCD_H */

0 comments on commit a0098ef

Please sign in to comment.