/* Then, 4 bytes of little endian (stuffed) FCS follow, then two trailing EOF bytes of 0x7E.  */
static __u8* stuff_fir(__u8 *p, __u8 c)
/* Then, 4 bytes of little endian (stuffed) FCS follow, then two trailing EOF bytes of 0x7E.  */
static __u8* stuff_fir(__u8 *p, __u8 c)
{
	switch(c) {
	case 0x7d:
	case 0x7e:
	case 0x7f:
		*p++ = 0x7d;
		c ^= IRDA_TRANS;
	default:
		*p++ = c;
	}
	return p;
}