History

[media] lirc_dev: remove sampling kthread

There are no drivers which use this functionality.

David Härdeman committed 9 years ago

Commit c3104e11 parent 2c5a1f43 files · +2 −109Browse files

Showing the changes to include/media/lirc_dev.h (1 of 3 files). Show all

Unified · Split

include/media/lirc_dev.h+0−16
@@ -133,12 +133,6 @@ static inline unsigned int lirc_buffer_write(struct lirc_buffer *buf, · 132 unmodified lines
133133 * @buffer_size: Number of FIFO buffers with @chunk_size size. If zero,
134134 * creates a buffer with BUFLEN size (16 bytes).
135135 *
136− * @sample_rate: if zero, the device will wait for an event with a new
137− * code to be parsed. Otherwise, specifies the sample
138− * rate for polling. Value should be between 0
139− * and HZ. If equal to HZ, it would mean one polling per
140− * second.
141− *
142136 * @features: lirc compatible hardware features, like LIRC_MODE_RAW,
143137 * LIRC_CAN\_\*, as defined at include/media/lirc.h.
144138 *
@@ -153,14 +147,6 @@ static inline unsigned int lirc_buffer_write(struct lirc_buffer *buf, · 8 unmodified lines
153147 * @max_timeout: Maximum timeout for record. Valid only if
154148 * LIRC_CAN_SET_REC_TIMEOUT is defined.
155149 *
156− * @add_to_buf: add_to_buf will be called after specified period of the
157− * time or triggered by the external event, this behavior
158− * depends on value of the sample_rate this function will
159− * be called in user context. This routine should return
160− * 0 if data was added to the buffer and -ENODATA if none
161− * was available. This should add some number of bits
162− * evenly divisible by code_length to the buffer.
163− *
164150 * @rbuf: if not NULL, it will be used as a read buffer, you will
165151 * have to write to the buffer by other means, like irq's
166152 * (see also lirc_serial.c).
@@ -184,7 +170,6 @@ struct lirc_driver { · 17 unmodified lines
184170 int minor;
185171 __u32 code_length;
186172 unsigned int buffer_size; /* in chunks holding one code each */
187− int sample_rate;
188173 __u32 features;
189174
190175 unsigned int chunk_size;
@@ -192,7 +177,6 @@ struct lirc_driver { · 1 unmodified line
192177 void *data;
193178 int min_timeout;
194179 int max_timeout;
195− int (*add_to_buf)(void *data, struct lirc_buffer *buf);
196180 struct lirc_buffer *rbuf;
197181 struct rc_dev *rdev;
198182 const struct file_operations *fops;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t