[media] rc: make s_tx_carrier consistent

LIRC_SET_SEND_CARRIER should return 0 on success or -errno.

Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Sean Young 2016-07-10 13:34:33 -03:00 • committed by Mauro Carvalho Chehab
commit 14d8188aab
5 changed files with 5 additions and 5 deletions

View file

@ -904,7 +904,7 @@ static int ene_set_tx_carrier(struct rc_dev *rdev, u32 carrier)
dbg("TX: out of range %d-%d kHz carrier",
2000 / ENE_CIRMOD_PRD_MIN, 2000 / ENE_CIRMOD_PRD_MAX);
return -1;
return -EINVAL;
}
dev->tx_period = period;

View file

@ -330,7 +330,7 @@ static int iguanair_set_tx_carrier(struct rc_dev *dev, uint32_t carrier)
mutex_unlock(&ir->lock);
return carrier;
return 0;
}
static int iguanair_set_tx_mask(struct rc_dev *dev, uint32_t mask)

View file

@ -942,7 +942,7 @@ static int mceusb_set_tx_carrier(struct rc_dev *dev, u32 carrier)
}
return carrier;
return 0;
}
/*

View file

@ -708,7 +708,7 @@ static int redrat3_set_tx_carrier(struct rc_dev *rcdev, u32 carrier)
rr3->carrier = carrier;
return carrier;
return 0;
}
static int redrat3_transmit_ir(struct rc_dev *rcdev, unsigned *txbuf,