History

[media] lirc_dev: store cdev in irctl, up maxdevs

Store the cdev pointer in struct irctl, allocated dynamically as needed, rather than having a static array. At the same time, recycle some of the saved memory to nudge the maximum number of lirc devices supported up a ways -- its not that uncommon these days, now that we have the rc-core lirc bridge driver, to see a system with at least 4 raw IR receivers. (consider a mythtv backend with several video capture devices and the possible need for IR transmit hardware).

Jarod Wilson committed 15 years ago

Commit 8de111e1 parent 04f561f2 files · +28 −11Browse files

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

Unified · Split

include/media/lirc_dev.h+1−1
@@ -9,7 +9,7 @@ · 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 412#define MAX_IRCTL_DEVICES 8
13#define BUFLEN 1613#define BUFLEN 16
14 14
15#define mod(n, div) ((n) % (div))15#define mod(n, div) ((n) % (div))

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