-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastian Andrzej Siewior
authored and
Greg Kroah-Hartman
committed
Sep 10, 2012
1 parent
7d4e6f4
commit 279fc64
Showing
4 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 8a424bf40d772fedacc91862ecc86f10541fabb3 | ||
refs/heads/master: b53d657d84f530e5d83f34ff1b81ceedad3faa31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#include <linux/bcd.h> | ||
#include <linux/export.h> | ||
|
||
unsigned bcd2bin(unsigned char val) | ||
unsigned _bcd2bin(unsigned char val) | ||
{ | ||
return (val & 0x0f) + (val >> 4) * 10; | ||
} | ||
EXPORT_SYMBOL(bcd2bin); | ||
EXPORT_SYMBOL(_bcd2bin); | ||
|
||
unsigned char bin2bcd(unsigned val) | ||
unsigned char _bin2bcd(unsigned val) | ||
{ | ||
return ((val / 10) << 4) + val % 10; | ||
} | ||
EXPORT_SYMBOL(bin2bcd); | ||
EXPORT_SYMBOL(_bin2bcd); |