Skip to content

Commit 89d8a2c

Browse files
seanyoungmchehab
authored andcommitted
media: lirc_zilog: driver only sends LIRCCODE
This driver cannot send pulse, it only accepts driver-dependent codes. Cc: <[email protected]> # v3.2 Signed-off-by: Sean Young <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent b429996 commit 89d8a2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/staging/media/lirc/lirc_zilog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ static void release_ir_tx(struct kref *ref)
288288
struct IR_tx *tx = container_of(ref, struct IR_tx, ref);
289289
struct IR *ir = tx->ir;
290290

291-
ir->l.features &= ~LIRC_CAN_SEND_PULSE;
291+
ir->l.features &= ~LIRC_CAN_SEND_LIRCCODE;
292292
/* Don't put_ir_device(tx->ir) here, so our lock doesn't get freed */
293293
ir->tx = NULL;
294294
kfree(tx);
@@ -1267,14 +1267,14 @@ static long ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
12671267
if (!(features & LIRC_CAN_SEND_MASK))
12681268
return -ENOTTY;
12691269

1270-
result = put_user(LIRC_MODE_PULSE, uptr);
1270+
result = put_user(LIRC_MODE_LIRCCODE, uptr);
12711271
break;
12721272
case LIRC_SET_SEND_MODE:
12731273
if (!(features & LIRC_CAN_SEND_MASK))
12741274
return -ENOTTY;
12751275

12761276
result = get_user(mode, uptr);
1277-
if (!result && mode != LIRC_MODE_PULSE)
1277+
if (!result && mode != LIRC_MODE_LIRCCODE)
12781278
return -EINVAL;
12791279
break;
12801280
default:
@@ -1512,7 +1512,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
15121512
kref_init(&tx->ref);
15131513
ir->tx = tx;
15141514

1515-
ir->l.features |= LIRC_CAN_SEND_PULSE;
1515+
ir->l.features |= LIRC_CAN_SEND_LIRCCODE;
15161516
mutex_init(&tx->client_lock);
15171517
tx->c = client;
15181518
tx->need_boot = 1;

0 commit comments

Comments
 (0)