Remove some stuff from lirc_dev.h which is not used anywhere. Signed-off-by: David Härdeman <david@xxxxxxxxxxx> --- include/media/lirc_dev.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/include/media/lirc_dev.h b/include/media/lirc_dev.h index 11f455a34090..af738d522dec 100644 --- a/include/media/lirc_dev.h +++ b/include/media/lirc_dev.h @@ -9,10 +9,6 @@ #ifndef _LINUX_LIRC_DEV_H #define _LINUX_LIRC_DEV_H -#define BUFLEN 16 - -#define mod(n, div) ((n) % (div)) - #include <linux/slab.h> #include <linux/fs.h> #include <linux/ioctl.h> @@ -20,6 +16,8 @@ #include <linux/kfifo.h> #include <media/lirc.h> +#define BUFLEN 16 + struct lirc_buffer { wait_queue_head_t wait_poll; spinlock_t fifo_lock; @@ -89,11 +87,6 @@ static inline int lirc_buffer_empty(struct lirc_buffer *buf) return !lirc_buffer_len(buf); } -static inline int lirc_buffer_available(struct lirc_buffer *buf) -{ - return buf->size - (lirc_buffer_len(buf) / buf->chunk_size); -} - static inline unsigned int lirc_buffer_read(struct lirc_buffer *buf, unsigned char *dest) {