Commit 14d8188a authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab

[media] rc: make s_tx_carrier consistent

LIRC_SET_SEND_CARRIER should return 0 on success or -errno.
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 20f5a827
...@@ -157,7 +157,7 @@ on working with the default settings initially.</para> ...@@ -157,7 +157,7 @@ on working with the default settings initially.</para>
<varlistentry> <varlistentry>
<term>LIRC_SET_{SEND,REC}_CARRIER</term> <term>LIRC_SET_{SEND,REC}_CARRIER</term>
<listitem> <listitem>
<para>Set send/receive carrier (in Hz).</para> <para>Set send/receive carrier (in Hz). Return 0 on success.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
......
...@@ -904,7 +904,7 @@ static int ene_set_tx_carrier(struct rc_dev *rdev, u32 carrier) ...@@ -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", dbg("TX: out of range %d-%d kHz carrier",
2000 / ENE_CIRMOD_PRD_MIN, 2000 / ENE_CIRMOD_PRD_MAX); 2000 / ENE_CIRMOD_PRD_MIN, 2000 / ENE_CIRMOD_PRD_MAX);
return -1; return -EINVAL;
} }
dev->tx_period = period; dev->tx_period = period;
......
...@@ -330,7 +330,7 @@ static int iguanair_set_tx_carrier(struct rc_dev *dev, uint32_t carrier) ...@@ -330,7 +330,7 @@ static int iguanair_set_tx_carrier(struct rc_dev *dev, uint32_t carrier)
mutex_unlock(&ir->lock); mutex_unlock(&ir->lock);
return carrier; return 0;
} }
static int iguanair_set_tx_mask(struct rc_dev *dev, uint32_t mask) static int iguanair_set_tx_mask(struct rc_dev *dev, uint32_t mask)
......
...@@ -942,7 +942,7 @@ static int mceusb_set_tx_carrier(struct rc_dev *dev, u32 carrier) ...@@ -942,7 +942,7 @@ static int mceusb_set_tx_carrier(struct rc_dev *dev, u32 carrier)
} }
return carrier; return 0;
} }
/* /*
......
...@@ -708,7 +708,7 @@ static int redrat3_set_tx_carrier(struct rc_dev *rcdev, u32 carrier) ...@@ -708,7 +708,7 @@ static int redrat3_set_tx_carrier(struct rc_dev *rcdev, u32 carrier)
rr3->carrier = carrier; rr3->carrier = carrier;
return carrier; return 0;
} }
static int redrat3_transmit_ir(struct rc_dev *rcdev, unsigned *txbuf, static int redrat3_transmit_ir(struct rc_dev *rcdev, unsigned *txbuf,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment