linux-stable/drivers/media/rc
Arnd Bergmann 52518e513d media: rc: clean up Kconfig dependencies
I came across a randconfig build failure from one driver
that only depends on CONFIG_USB_ARCH_HAS_HCD but fails when
built without CONFIG_USB:

ld: drivers/media/rc/ir_toy.o: in function `irtoy_disconnect':
ir_toy.c:(.text+0x24): undefined reference to `usb_kill_urb'
ld: ir_toy.c:(.text+0x2c): undefined reference to `usb_free_urb'
ld: ir_toy.c:(.text+0x34): undefined reference to `usb_kill_urb'
ld: ir_toy.c:(.text+0x3c): undefined reference to `usb_free_urb'

Upon a closer look, I find that a lot of the other drivers
'select USB' rather than stating 'depends on USB' as is common
for most subsystems. I also find that all except one driver
have an extra 'depends on RC_CORE' that is already implied by
the top-level 'if RC_CORE' check.

Clean up both by reducing the dependencies to the required set.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-05-21 15:06:04 +02:00
..
img-ir media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +01:00
keymaps media: rc: remove tango ir driver and keymap 2021-05-21 15:05:04 +02:00
ati_remote.c media: ati_remote: sanity check for both endpoints 2020-09-27 11:24:07 +02:00
bpf-lirc.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
ene_ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ene_ir.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
fintek-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
fintek-cir.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
gpio-ir-recv.c media: rc: gpio-ir-recv: add QoS support for cpuidle system 2020-09-27 11:27:23 +02:00
gpio-ir-tx.c media: gpio-ir-tx: spinlock is not needed to disable interrupts 2020-08-28 14:06:36 +02:00
igorplugusb.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
iguanair.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
imon.c media: imon: Replace http links with https ones 2020-07-19 14:00:32 +02:00
imon_raw.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-hix5hd2.c media: rc: ir-hix5hd2: use the correct HiSilicon copyright 2021-04-09 13:03:24 +02:00
ir-imon-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-jvc-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-mce_kbd-decoder.c media: rc: fix timeout handling after switch to microsecond durations 2021-01-11 12:58:44 +01:00
ir-nec-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rc5-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rc6-decoder.c Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
ir-rcmm-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rx51.c media: ir-rx51: Use 64-bit division macro 2020-04-21 12:57:04 +02:00
ir-sanyo-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-sharp-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-sony-decoder.c Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
ir-spi.c media: spi: IR LED: add missing of table registration 2019-05-22 15:27:37 -04:00
ir-xmp-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir_toy.c media: ir_toy: add another IR Droid device 2021-01-14 13:44:35 +01:00
ite-cir.c media: ite-cir: probe of ITE8708 on ASUS PN50 fails 2021-04-09 13:04:25 +02:00
ite-cir.h media: ite-cir: in_use is not needed 2021-03-11 11:59:41 +01:00
Kconfig media: rc: clean up Kconfig dependencies 2021-05-21 15:06:04 +02:00
lirc_dev.c media: rc: validate that "rc_proto" is reasonable 2020-11-17 06:57:10 +01:00
Makefile media: rc: remove tango ir driver and keymap 2021-05-21 15:05:04 +02:00
mceusb.c media: mceusb: sanity check for prescaler value 2021-01-27 08:28:36 +01:00
meson-ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
mtk-cir.c media: mtk-cir: fix calculation of chk period 2020-12-01 16:00:51 +01:00
nuvoton-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
nuvoton-cir.h media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
pwm-ir-tx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 122 2019-05-24 17:39:03 +02:00
rc-core-priv.h media: rc: rename ir_lirc_* functions to lirc_* 2020-09-03 16:19:27 +02:00
rc-ir-raw.c media: rc: rename ir_lirc_* functions to lirc_* 2020-09-03 16:19:27 +02:00
rc-loopback.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
rc-main.c media: rc: compile rc-cec.c into rc-core 2021-03-11 11:40:28 +01:00
redrat3.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
serial_ir.c media: rc: fix timeout handling after switch to microsecond durations 2021-01-11 12:58:44 +01:00
sir_ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
st_rc.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
streamzap.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
sunxi-cir.c media: sunxi-cir: Implement suspend/resume/shutdown callbacks 2021-01-27 08:27:59 +01:00
ttusbir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
winbond-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
xbox_remote.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00