Remove some stuff from lirc_dev.h which is not used anywhere.
Showing the changes to include/media/lirc_dev.h (1 of 1 file). Show all
Unified · Split
| @@ -12,8 +12,6 @@ · 11 unmodified lines | |||
| 12 | #define MAX_IRCTL_DEVICES 8 | 12 | #define MAX_IRCTL_DEVICES 8 |
| 13 | #define BUFLEN 16 | 13 | #define BUFLEN 16 |
| 14 | 14 | ||
| 15 | #define mod(n, div) ((n) % (div)) | ||
| 16 | |||
| 17 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
| 18 | #include <linux/fs.h> | 16 | #include <linux/fs.h> |
| 19 | #include <linux/ioctl.h> | 17 | #include <linux/ioctl.h> |
| @@ -90,11 +88,6 @@ static inline int lirc_buffer_empty(struct lirc_buffer *buf) · 70 unmodified lines | |||
| 90 | return !lirc_buffer_len(buf); | 88 | return !lirc_buffer_len(buf); |
| 91 | } | 89 | } |
| 92 | 90 | ||
| 93 | static inline int lirc_buffer_available(struct lirc_buffer *buf) | ||
| 94 | { | ||
| 95 | return buf->size - (lirc_buffer_len(buf) / buf->chunk_size); | ||
| 96 | } | ||
| 97 | |||
| 98 | static inline unsigned int lirc_buffer_read(struct lirc_buffer *buf, | 91 | static inline unsigned int lirc_buffer_read(struct lirc_buffer *buf, |
| 99 | unsigned char *dest) | 92 | unsigned char *dest) |
| 100 | { | 93 | { |