mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 10:02:31 -04:00
media: rc: rename s_learning_mode() to s_wideband_receiver()
The s_learning_mode() function is called in response to the ioctl LIRC_SET_WIDEBAND_RECEIVER, so rename it to s_wideband_receiver(). Learning mode is when both the wideband receiver is turned on and carrier reports are enabled. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
50634548d3
commit
8b777edff0
@@ -412,7 +412,7 @@ static long lirc_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
val |= LIRC_CAN_SET_REC_CARRIER |
|
||||
LIRC_CAN_SET_REC_CARRIER_RANGE;
|
||||
|
||||
if (dev->s_learning_mode)
|
||||
if (dev->s_wideband_receiver)
|
||||
val |= LIRC_CAN_USE_WIDEBAND_RECEIVER;
|
||||
|
||||
if (dev->s_carrier_report)
|
||||
@@ -519,10 +519,10 @@ static long lirc_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
break;
|
||||
|
||||
case LIRC_SET_WIDEBAND_RECEIVER:
|
||||
if (!dev->s_learning_mode)
|
||||
if (!dev->s_wideband_receiver)
|
||||
ret = -ENOTTY;
|
||||
else
|
||||
ret = dev->s_learning_mode(dev, !!val);
|
||||
ret = dev->s_wideband_receiver(dev, !!val);
|
||||
break;
|
||||
|
||||
case LIRC_SET_MEASURE_CARRIER_MODE:
|
||||
|
||||
Reference in New Issue
Block a user