Revision 0b6c135ea9d563f77fe121deff6f19af222b3b0e authored by Russell King on 28 January 2010, 21:59:58 UTC, committed by Russell King on 28 January 2010, 21:59:58 UTC
bcd.c
#include <linux/bcd.h>
#include <linux/module.h>
unsigned bcd2bin(unsigned char val)
{
return (val & 0x0f) + (val >> 4) * 10;
}
EXPORT_SYMBOL(bcd2bin);
unsigned char bin2bcd(unsigned val)
{
return ((val / 10) << 4) + val % 10;
}
EXPORT_SYMBOL(bin2bcd);
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...