Skip to content

Commit e27d381

Browse files
author
Mauro Carvalho Chehab
committed
V4L/DVB (13612): IR: Move common IR code to drivers/media/IR
This is the first step of creating a common code for IR that can be used by other input devices. For now, keep IR dir at drivers/media, to easy the movement of the IR files, but later patches may move it to drivers/IR or drivers/input/IR. No functional changes is done on this patch. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 909d15a commit e27d381

9 files changed

Lines changed: 10 additions & 7 deletions

File tree

‎drivers/media/IR/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
config VIDEO_IR
2+
tristate
3+
depends on INPUT
4+
default INPUT

‎drivers/media/IR/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ir-common-objs := ir-functions.o ir-keymaps.o ir-keytable.o
2+
3+
obj-$(CONFIG_VIDEO_IR) += ir-common.o
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define IR_TAB_MIN_SIZE 32
1111
#define IR_TAB_MAX_SIZE 1024
1212

13+
1314
/**
1415
* ir_seek_table() - returns the element order on the table
1516
* @rc_tab: the ir_scancode_table with the keymap to be used

‎drivers/media/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ config VIDEO_MEDIA
9999
comment "Multimedia drivers"
100100

101101
source "drivers/media/common/Kconfig"
102+
source "drivers/media/IR/Kconfig"
102103

103104
#
104105
# Tuner drivers for DVB and V4L

‎drivers/media/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Makefile for the kernel multimedia device drivers.
33
#
44

5-
obj-y += common/ video/
5+
obj-y += common/ IR/ video/
66

77
obj-$(CONFIG_VIDEO_DEV) += radio/
88
obj-$(CONFIG_DVB_CORE) += dvb/

‎drivers/media/common/Makefile‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
saa7146-objs := saa7146_i2c.o saa7146_core.o
22
saa7146_vv-objs := saa7146_fops.o saa7146_video.o saa7146_hlp.o saa7146_vbi.o
3-
ir-common-objs := ir-functions.o ir-keymaps.o ir-keytable.o
43

54
obj-y += tuners/
65
obj-$(CONFIG_VIDEO_SAA7146) += saa7146.o
76
obj-$(CONFIG_VIDEO_SAA7146_VV) += saa7146_vv.o
8-
obj-$(CONFIG_VIDEO_IR) += ir-common.o

‎drivers/media/video/Kconfig‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ config VIDEO_BTCX
3737
depends on PCI
3838
tristate
3939

40-
config VIDEO_IR
41-
tristate
42-
depends on INPUT
43-
4440
config VIDEO_TVEEPROM
4541
tristate
4642
depends on I2C

0 commit comments

Comments
 (0)