[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:
committed by
Mauro Carvalho Chehab
parent
8a8cc952d3
commit
5588dc2b02
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user