diff options
author | Sean Young <sean@mess.org> | 2016-07-10 18:34:33 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-15 16:54:23 +0200 |
commit | 14d8188aabd174b7411388db9c075e77aa69b781 (patch) | |
tree | f4a0a8bca2d35e8796d712d9ca52cc39444edc6e /drivers/media/rc/ene_ir.c | |
parent | [media] rc: make s_tx_mask consistent (diff) | |
download | linux-14d8188aabd174b7411388db9c075e77aa69b781.tar.xz linux-14d8188aabd174b7411388db9c075e77aa69b781.zip |
[media] rc: make s_tx_carrier consistent
LIRC_SET_SEND_CARRIER should return 0 on success or -errno.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/ene_ir.c')
-rw-r--r-- | drivers/media/rc/ene_ir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/ene_ir.c b/drivers/media/rc/ene_ir.c index 8d77e1c4a141..d1c61cd035f6 100644 --- a/drivers/media/rc/ene_ir.c +++ b/drivers/media/rc/ene_ir.c @@ -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; |