Revision 257c2a02a8f668ea195bcb56eebbddc1af718e5e authored by Takashi Iwai on 27 January 2013, 09:20:22 UTC, committed by Takashi Iwai on 27 January 2013, 09:20:22 UTC
ASoC: Updates for v3.8-rc4

The usual set of driver updates, nothing too thrilling in here - one
core change for the regulator bypass mode which was just not doing the
right thing at all and a bunch of driver specifics.
2 parent s 0712eea + a8c136d
Raw File
bcd.c
#include <linux/bcd.h>
#include <linux/export.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);
back to top