mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 01:08:03 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
14
lib/bcd.c
Normal file
14
lib/bcd.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#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);
|
Loading…
Add table
Add a link
Reference in a new issue