1
0

[media] rc-core: lirc use unsigned int

Durations can never be negative, so it makes sense to consistently use
unsigned int for LIRC transmission. Contrary to the initial impression,
this shouldn't actually change the userspace API.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
David Härdeman
2011-04-28 12:13:58 -03:00
committed by Mauro Carvalho Chehab
parent 8a8cc952d3
commit 5588dc2b02
9 changed files with 25 additions and 44 deletions

View File

@@ -577,16 +577,12 @@ wbcir_txmask(struct rc_dev *dev, u32 mask)
}
static int
wbcir_tx(struct rc_dev *dev, int *buf, u32 bufsize)
wbcir_tx(struct rc_dev *dev, unsigned *buf, unsigned count)
{
struct wbcir_data *data = dev->priv;
u32 count;
unsigned i;
unsigned long flags;
/* bufsize has been sanity checked by the caller */
count = bufsize / sizeof(int);
/* Not sure if this is possible, but better safe than sorry */
spin_lock_irqsave(&data->spinlock, flags);
if (data->txstate != WBCIR_TXSTATE_INACTIVE) {