summaryrefslogtreecommitdiffstats
path: root/drivers/usb/input
diff options
context:
space:
mode:
authorHenk <Henk.Vergonet@gmail.com>2005-08-17 10:40:26 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-08 16:40:57 -0700
commitb71e318cdb1dc301d734fdd4983dfc6dc167235a (patch)
tree225958f7e2fd766e9834a07e33ad7b8727081ca5 /drivers/usb/input
parentd5ae36dd439549305f00a755556f49c9fa7bb237 (diff)
downloadblackbird-op-linux-b71e318cdb1dc301d734fdd4983dfc6dc167235a.tar.gz
blackbird-op-linux-b71e318cdb1dc301d734fdd4983dfc6dc167235a.zip
[PATCH] USB: yealink: fix htons usage, documentation updates
Signed-off-by: Henk Vergonet <henk.vergonet@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/input')
-rw-r--r--drivers/usb/input/yealink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/input/yealink.c b/drivers/usb/input/yealink.c
index e2dd274c6134..58a176ef96a5 100644
--- a/drivers/usb/input/yealink.c
+++ b/drivers/usb/input/yealink.c
@@ -318,7 +318,7 @@ static int yealink_set_ringtone(struct yealink_dev *yld, u8 *buf, size_t size)
if (len > sizeof(p->data))
len = sizeof(p->data);
p->size = len;
- p->offset = htons(ix);
+ p->offset = cpu_to_be16(ix);
memcpy(p->data, &buf[ix], len);
yealink_cmd(yld, p);
ix += len;
@@ -383,7 +383,7 @@ send_update:
val--;
val &= 0x1f;
yld->ctl_data->cmd = CMD_SCANCODE;
- yld->ctl_data->offset = htons(val);
+ yld->ctl_data->offset = cpu_to_be16(val);
yld->ctl_data->data[0] = 0;
yld->ctl_data->sum = -1 - CMD_SCANCODE - val;
break;
@@ -395,7 +395,7 @@ send_update:
/* Combine up to <len> consecutive LCD bytes in a singe request
*/
yld->ctl_data->cmd = CMD_LCD;
- yld->ctl_data->offset = htons(ix);
+ yld->ctl_data->offset = cpu_to_be16(ix);
yld->ctl_data->size = len;
yld->ctl_data->sum = -CMD_LCD - ix - val - len;
for(i=1; i<len; i++) {
OpenPOWER on IntegriCloud