Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: jellybean
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.257 kB
#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);
Jump to Line
Something went wrong with that request. Please try again.