media: lirc: create rc-core open and close lirc functions
Replace the generic kernel lirc api with ones which use rc-core, further reducing the lirc_dev members. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
cb84343fce
commit
111429fb73
@@ -117,6 +117,7 @@ enum rc_filter_type {
|
||||
* @rx_resolution : resolution (in ns) of input sampler
|
||||
* @tx_resolution: resolution (in ns) of output sampler
|
||||
* @lirc_dev: lirc char device
|
||||
* @lirc_open: count of the number of times the device has been opened
|
||||
* @carrier_low: when setting the carrier range, first the low end must be
|
||||
* set with an ioctl and then the high end with another ioctl
|
||||
* @gap_start: time when gap starts
|
||||
@@ -190,6 +191,7 @@ struct rc_dev {
|
||||
u32 tx_resolution;
|
||||
#ifdef CONFIG_LIRC
|
||||
struct lirc_dev *lirc_dev;
|
||||
int lirc_open;
|
||||
int carrier_low;
|
||||
ktime_t gap_start;
|
||||
u64 gap_duration;
|
||||
|
||||
Reference in New Issue
Block a user