diff options
author | David Härdeman <david@hardeman.nu> | 2017-05-01 13:04:57 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-06 09:07:26 -0300 |
commit | 2dc0b351fe7e27b0ceabcde0272bef75eb05bd48 (patch) | |
tree | 9bf4c8a4513015aaf8dff500a4170f2cd5273042 /include/media | |
parent | 463015ddb44122d03bbbf8a39cd170a347b2a010 (diff) | |
download | op-kernel-dev-2dc0b351fe7e27b0ceabcde0272bef75eb05bd48.zip op-kernel-dev-2dc0b351fe7e27b0ceabcde0272bef75eb05bd48.tar.gz |
[media] lirc_dev: cleanup header
Remove some stuff from lirc_dev.h which is not used anywhere.
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/lirc_dev.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/media/lirc_dev.h b/include/media/lirc_dev.h index 1f327e2..86d15a9 100644 --- a/include/media/lirc_dev.h +++ b/include/media/lirc_dev.h @@ -12,8 +12,6 @@ #define MAX_IRCTL_DEVICES 8 #define BUFLEN 16 -#define mod(n, div) ((n) % (div)) - #include <linux/slab.h> #include <linux/fs.h> #include <linux/ioctl.h> @@ -90,11 +88,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) { |