diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-05-12 12:05:43 -0700 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-05-16 15:09:08 +0900 |
commit | bfd3c7a728fbe642f79f99482a6c01158c675545 (patch) | |
tree | 5ab84c5e56924dd71fcf9b714430b2e84764bc16 /drivers/serial | |
parent | 65b83427c6e5814556855c42bf9b4edeafd66623 (diff) | |
download | lwn-bfd3c7a728fbe642f79f99482a6c01158c675545.tar.gz lwn-bfd3c7a728fbe642f79f99482a6c01158c675545.zip |
sh: use the common ascii hex helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/sh-sci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c index 8fdafc27fce8..ce6ee92b3a1b 100644 --- a/drivers/serial/sh-sci.c +++ b/drivers/serial/sh-sci.c @@ -184,15 +184,15 @@ static void put_string(struct sci_port *sci_port, const char *buffer, int count) int h, l; c = *p++; - h = highhex(c); - l = lowhex(c); + h = hex_asc_hi(c); + l = hex_asc_lo(c); put_char(port, h); put_char(port, l); checksum += h + l; } put_char(port, '#'); - put_char(port, highhex(checksum)); - put_char(port, lowhex(checksum)); + put_char(port, hex_asc_hi(checksum)); + put_char(port, hex_asc_lo(checksum)); } while (get_char(port) != '+'); } else #endif /* CONFIG_SH_STANDARD_BIOS || CONFIG_SH_KGDB */ |