/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _BCD_H #define _BCD_H #include <linux/compiler.h> #define bcd2bin(x) … #define bin2bcd(x) … #define bcd_is_valid(x) … #define const_bcd2bin(x) … #define const_bin2bcd(x) … #define const_bcd_is_valid(x) … unsigned _bcd2bin(unsigned char val) __attribute_const__; unsigned char _bin2bcd(unsigned val) __attribute_const__; #endif /* _BCD_H */