Skip to content

Commit 9688efd

Browse files
anssihMauro Carvalho Chehab
authored andcommitted
[media] move ati_remote driver from input/misc to media/rc
The driver will be migrated to the RC driver API in a following commit. [mchehab@redhat.com: Fix some bad whitespacing] Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 653822b commit 9688efd

5 files changed

Lines changed: 22 additions & 22 deletions

File tree

‎drivers/input/misc/Kconfig‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -183,22 +183,6 @@ config INPUT_ATLAS_BTNS
183183
To compile this driver as a module, choose M here: the module will
184184
be called atlas_btns.
185185

186-
config INPUT_ATI_REMOTE
187-
tristate "ATI / X10 USB RF remote control"
188-
depends on USB_ARCH_HAS_HCD
189-
select USB
190-
help
191-
Say Y here if you want to use an ATI or X10 "Lola" USB remote control.
192-
These are RF remotes with USB receivers.
193-
The ATI remote comes with many of ATI's All-In-Wonder video cards.
194-
The X10 "Lola" remote is available at:
195-
<http://www.x10.com/products/lola_sg1.htm>
196-
This driver provides mouse pointer, left and right mouse buttons,
197-
and maps all the other remote buttons to keypress events.
198-
199-
To compile this driver as a module, choose M here: the module will be
200-
called ati_remote.
201-
202186
config INPUT_ATI_REMOTE2
203187
tristate "ATI / Philips USB RF remote control"
204188
depends on USB_ARCH_HAS_HCD

‎drivers/input/misc/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ obj-$(CONFIG_INPUT_ADXL34X) += adxl34x.o
1313
obj-$(CONFIG_INPUT_ADXL34X_I2C) += adxl34x-i2c.o
1414
obj-$(CONFIG_INPUT_ADXL34X_SPI) += adxl34x-spi.o
1515
obj-$(CONFIG_INPUT_APANEL) += apanel.o
16-
obj-$(CONFIG_INPUT_ATI_REMOTE) += ati_remote.o
1716
obj-$(CONFIG_INPUT_ATI_REMOTE2) += ati_remote2.o
1817
obj-$(CONFIG_INPUT_ATLAS_BTNS) += atlas_btns.o
1918
obj-$(CONFIG_INPUT_BFIN_ROTARY) += bfin_rotary.o

‎drivers/media/rc/Kconfig‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ menuconfig RC_CORE
44
default INPUT
55
---help---
66
Enable support for Remote Controllers on Linux. This is
7-
needed in order to support several video capture adapters.
8-
Currently, all supported devices use InfraRed.
7+
needed in order to support several video capture adapters,
8+
standalone IR receivers/transmitters, and RF receivers.
99

1010
Enable this option if you have a video capture board even
1111
if you don't need IR, as otherwise, you may not be able to
@@ -108,6 +108,22 @@ config IR_LIRC_CODEC
108108
Enable this option to pass raw IR to and from userspace via
109109
the LIRC interface.
110110

111+
config RC_ATI_REMOTE
112+
tristate "ATI / X10 USB RF remote control"
113+
depends on USB_ARCH_HAS_HCD
114+
select USB
115+
help
116+
Say Y here if you want to use an ATI or X10 "Lola" USB remote control.
117+
These are RF remotes with USB receivers.
118+
The ATI remote comes with many of ATI's All-In-Wonder video cards.
119+
The X10 "Lola" remote is available at:
120+
<http://www.x10.com/products/lola_sg1.htm>
121+
This driver provides mouse pointer, left and right mouse buttons,
122+
and maps all the other remote buttons to keypress events.
123+
124+
To compile this driver as a module, choose M here: the module will be
125+
called ati_remote.
126+
111127
config IR_ENE
112128
tristate "ENE eHome Receiver/Transceiver (pnp id: ENE0100/ENE02xxx)"
113129
depends on PNP

‎drivers/media/rc/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ obj-$(CONFIG_IR_MCE_KBD_DECODER) += ir-mce_kbd-decoder.o
1414
obj-$(CONFIG_IR_LIRC_CODEC) += ir-lirc-codec.o
1515

1616
# stand-alone IR receivers/transmitters
17+
obj-$(CONFIG_RC_ATI_REMOTE) += ati_remote.o
1718
obj-$(CONFIG_IR_IMON) += imon.o
1819
obj-$(CONFIG_IR_ITE_CIR) += ite-cir.o
1920
obj-$(CONFIG_IR_MCEUSB) += mceusb.o
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
#define NVIDIA_REMOTE_PRODUCT_ID 0x0005
106106
#define MEDION_REMOTE_PRODUCT_ID 0x0006
107107

108-
#define DRIVER_VERSION "2.2.1"
108+
#define DRIVER_VERSION "2.2.1"
109109
#define DRIVER_AUTHOR "Torrey Hoffman <thoffman@arnor.net>"
110110
#define DRIVER_DESC "ATI/X10 RF USB Remote Control"
111111

@@ -481,7 +481,7 @@ static void ati_remote_input_report(struct urb *urb)
481481
/* Mask unwanted remote channels. */
482482
/* note: remote_num is 0-based, channel 1 on remote == 0 here */
483483
remote_num = (data[3] >> 4) & 0x0f;
484-
if (channel_mask & (1 << (remote_num + 1))) {
484+
if (channel_mask & (1 << (remote_num + 1))) {
485485
dbginfo(&ati_remote->interface->dev,
486486
"Masked input from channel 0x%02x: data %02x,%02x, mask= 0x%02lx\n",
487487
remote_num, data[1], data[2], channel_mask);
@@ -630,7 +630,7 @@ static int ati_remote_alloc_buffers(struct usb_device *udev,
630630
return -1;
631631

632632
ati_remote->outbuf = usb_alloc_coherent(udev, DATA_BUFSIZE, GFP_ATOMIC,
633-
&ati_remote->outbuf_dma);
633+
&ati_remote->outbuf_dma);
634634
if (!ati_remote->outbuf)
635635
return -1;
636636

0 commit comments

Comments
 (0)