History

[media] media: lirc_dev: use an IDA instead of an array to keep track of registered devices

Using the kernel-provided IDA simplifies the code and makes it possible to remove the lirc_dev_lock mutex.

David Härdeman committed 9 years ago

Commit 46c8f471 parent 3381b772 files · +12 −25Browse files

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

Unified · Split

include/media/lirc_dev.h+0−1
@@ -9,7 +9,6 @@ · 8 unmodified lines
9#ifndef _LINUX_LIRC_DEV_H9#ifndef _LINUX_LIRC_DEV_H
10#define _LINUX_LIRC_DEV_H10#define _LINUX_LIRC_DEV_H
11 11
12#define MAX_IRCTL_DEVICES 8
13#define BUFLEN 1612#define BUFLEN 16
14 13
15#include <linux/slab.h>14#include <linux/slab.h>