Skip to content

Commit

Permalink
[media] rc: rename the remaining things to rc_core
Browse files Browse the repository at this point in the history
The Remote Controller subsystem is meant to be used not only by Infra Red
but also for similar types of Remote Controllers. The core is not specific
to Infra Red. As such, rename:
	- ir-core.h to rc-core.h
	- IR_CORE to RC_CORE
	- namespace inside rc-core.c/rc-core.h

To be consistent with the other changes.

No functional change on this patch.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Dec 29, 2010
1 parent a6e3b81 commit 6bda964
Show file tree
Hide file tree
Showing 51 changed files with 78 additions and 77 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dm1105/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ config DVB_DM1105
select DVB_CX24116 if !DVB_FE_CUSTOMISE
select DVB_SI21XX if !DVB_FE_CUSTOMISE
select DVB_DS3000 if !DVB_FE_CUSTOMISE
depends on IR_CORE
depends on RC_CORE
help
Support for cards based on the SDMC DM1105 PCI chip like
DvbWorld 2002
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/dm1105/dm1105.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

#include "demux.h"
#include "dmxdev.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config DVB_USB
tristate "Support for various USB DVB devices"
depends on DVB_CORE && USB && I2C && IR_CORE
depends on DVB_CORE && USB && I2C && RC_CORE
help
By enabling this you will be able to choose the various supported
USB1.1 and USB2.0 DVB devices.
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/dvb-usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/usb.h>
#include <linux/firmware.h>
#include <linux/mutex.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

#include "dvb_frontend.h"
#include "dvb_demux.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/lmedm04.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#define DVB_USB_LOG_PREFIX "LME2510(C)"
#include <linux/usb.h>
#include <linux/usb/input.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

#include "dvb-usb.h"
#include "lmedm04.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/mantis/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config MANTIS_CORE
tristate "Mantis/Hopper PCI bridge based devices"
depends on PCI && I2C && INPUT && IR_CORE
depends on PCI && I2C && INPUT && RC_CORE

help
Support for PCI cards based on the Mantis and Hopper PCi bridge.
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/mantis/mantis_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <media/ir-core.h>
#include <media/rc-core.h>
#include <linux/pci.h>

#include "dmxdev.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/siano/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

config SMS_SIANO_MDTV
tristate "Siano SMS1xxx based MDTV receiver"
depends on DVB_CORE && IR_CORE && HAS_DMA
depends on DVB_CORE && RC_CORE && HAS_DMA
---help---
Choose Y or M here if you have MDTV receiver with a Siano chipset.

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/siano/smsir.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define __SMS_IR_H__

#include <linux/input.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

#define IR_DEFAULT_TIMEOUT 100

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/ttpci/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ config DVB_BUDGET_CI
select DVB_LNBP21 if !DVB_FE_CUSTOMISE
select DVB_TDA10023 if !DVB_FE_CUSTOMISE
select MEDIA_TUNER_TDA827X if !MEDIA_TUNER_CUSTOMISE
depends on IR_CORE
depends on RC_CORE
help
Support for simple SAA7146 based DVB cards
(so called Budget- or Nova-PCI cards) without onboard
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/ttpci/budget-ci.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

#include "budget.h"

Expand Down
35 changes: 18 additions & 17 deletions drivers/media/rc/Kconfig
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
menuconfig IR_CORE
tristate "Infrared remote controller adapters"
menuconfig RC_CORE
tristate "Remote Controller adapters"
depends on INPUT
default INPUT
---help---
Enable support for Remote Controllers on Linux. This is
needed in order to support several video capture adapters.
Currently, all supported devices use InfraRed.

Enable this option if you have a video capture board even
if you don't need IR, as otherwise, you may not be able to
compile the driver for your adapter.

if IR_CORE
if RC_CORE

config LIRC
tristate
Expand All @@ -27,7 +28,7 @@ source "drivers/media/rc/keymaps/Kconfig"

config IR_NEC_DECODER
tristate "Enable IR raw decoder for the NEC protocol"
depends on IR_CORE
depends on RC_CORE
select BITREVERSE
default y

Expand All @@ -37,7 +38,7 @@ config IR_NEC_DECODER

config IR_RC5_DECODER
tristate "Enable IR raw decoder for the RC-5 protocol"
depends on IR_CORE
depends on RC_CORE
select BITREVERSE
default y

Expand All @@ -47,7 +48,7 @@ config IR_RC5_DECODER

config IR_RC6_DECODER
tristate "Enable IR raw decoder for the RC6 protocol"
depends on IR_CORE
depends on RC_CORE
select BITREVERSE
default y

Expand All @@ -57,7 +58,7 @@ config IR_RC6_DECODER

config IR_JVC_DECODER
tristate "Enable IR raw decoder for the JVC protocol"
depends on IR_CORE
depends on RC_CORE
select BITREVERSE
default y

Expand All @@ -67,7 +68,7 @@ config IR_JVC_DECODER

config IR_SONY_DECODER
tristate "Enable IR raw decoder for the Sony protocol"
depends on IR_CORE
depends on RC_CORE
default y

---help---
Expand All @@ -76,7 +77,7 @@ config IR_SONY_DECODER

config IR_RC5_SZ_DECODER
tristate "Enable IR raw decoder for the RC-5 (streamzap) protocol"
depends on IR_CORE
depends on RC_CORE
select BITREVERSE
default y

Expand All @@ -88,7 +89,7 @@ config IR_RC5_SZ_DECODER

config IR_LIRC_CODEC
tristate "Enable IR to LIRC bridge"
depends on IR_CORE
depends on RC_CORE
depends on LIRC
default y

Expand All @@ -99,7 +100,7 @@ config IR_LIRC_CODEC
config IR_ENE
tristate "ENE eHome Receiver/Transceiver (pnp id: ENE0100/ENE02xxx)"
depends on PNP
depends on IR_CORE
depends on RC_CORE
---help---
Say Y here to enable support for integrated infrared receiver
/transceiver made by ENE.
Expand All @@ -113,7 +114,7 @@ config IR_ENE
config IR_IMON
tristate "SoundGraph iMON Receiver and Display"
depends on USB_ARCH_HAS_HCD
depends on IR_CORE
depends on RC_CORE
select USB
---help---
Say Y here if you want to use a SoundGraph iMON (aka Antec Veris)
Expand All @@ -125,7 +126,7 @@ config IR_IMON
config IR_MCEUSB
tristate "Windows Media Center Ed. eHome Infrared Transceiver"
depends on USB_ARCH_HAS_HCD
depends on IR_CORE
depends on RC_CORE
select USB
---help---
Say Y here if you want to use a Windows Media Center Edition
Expand All @@ -137,7 +138,7 @@ config IR_MCEUSB
config IR_NUVOTON
tristate "Nuvoton w836x7hg Consumer Infrared Transceiver"
depends on PNP
depends on IR_CORE
depends on RC_CORE
---help---
Say Y here to enable support for integrated infrared receiver
/transciever made by Nuvoton (formerly Winbond). This chip is
Expand All @@ -150,7 +151,7 @@ config IR_NUVOTON
config IR_STREAMZAP
tristate "Streamzap PC Remote IR Receiver"
depends on USB_ARCH_HAS_HCD
depends on IR_CORE
depends on RC_CORE
select USB
---help---
Say Y here if you want to use a Streamzap PC Remote
Expand All @@ -162,7 +163,7 @@ config IR_STREAMZAP
config IR_WINBOND_CIR
tristate "Winbond IR remote control"
depends on X86 && PNP
depends on IR_CORE
depends on RC_CORE
select NEW_LEDS
select LEDS_CLASS
select LEDS_TRIGGERS
Expand All @@ -176,4 +177,4 @@ config IR_WINBOND_CIR
To compile this driver as a module, choose M here: the module will
be called winbond_cir.

endif #IR_CORE
endif #RC_CORE
2 changes: 1 addition & 1 deletion drivers/media/rc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ rc-core-objs := rc-main.o rc-raw.o

obj-y += keymaps/

obj-$(CONFIG_IR_CORE) += rc-core.o
obj-$(CONFIG_RC_CORE) += rc-core.o
obj-$(CONFIG_LIRC) += lirc_dev.o
obj-$(CONFIG_IR_NEC_DECODER) += ir-nec-decoder.o
obj-$(CONFIG_IR_RC5_DECODER) += ir-rc5-decoder.o
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/ene_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <media/ir-core.h>
#include <media/rc-core.h>
#include "ene_ir.h"

static int sample_period;
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <linux/input.h>
#include <linux/usb.h>
#include <linux/usb/input.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

#include <linux/time.h>
#include <linux/timer.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/ir-lirc-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/wait.h>
#include <media/lirc.h>
#include <media/lirc_dev.h>
#include <media/ir-core.h>
#include <media/rc-core.h>
#include "rc-core-priv.h"

#define LIRCBUF_SIZE 256
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/keymaps/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config RC_MAP
tristate "Compile Remote Controller keymap modules"
depends on IR_CORE
depends on RC_CORE
default y

---help---
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/keymaps/rc-lirc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* (at your option) any later version.
*/

#include <media/ir-core.h>
#include <media/rc-core.h>

static struct ir_scancode lirc[] = {
{ },
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/mceusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/usb/input.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

#define DRIVER_VERSION "1.91"
#define DRIVER_AUTHOR "Jarod Wilson <jarod@wilsonet.com>"
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/nuvoton-cir.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <media/ir-core.h>
#include <media/rc-core.h>
#include <linux/pci_ids.h>

#include "nuvoton-cir.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/rc-core-priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <linux/slab.h>
#include <linux/spinlock.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

struct ir_raw_handler {
struct list_head list;
Expand Down
18 changes: 9 additions & 9 deletions drivers/media/rc/rc-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* GNU General Public License for more details.
*/

#include <media/ir-core.h>
#include <media/rc-core.h>
#include <linux/spinlock.h>
#include <linux/delay.h>
#include <linux/input.h>
Expand Down Expand Up @@ -1103,11 +1103,11 @@ EXPORT_SYMBOL_GPL(rc_unregister_device);
* Init/exit code for the module. Basically, creates/removes /sys/class/rc
*/

static int __init ir_core_init(void)
static int __init rc_core_init(void)
{
int rc = class_register(&ir_input_class);
if (rc) {
printk(KERN_ERR "ir_core: unable to register rc class\n");
printk(KERN_ERR "rc_core: unable to register rc class\n");
return rc;
}

Expand All @@ -1118,18 +1118,18 @@ static int __init ir_core_init(void)
return 0;
}

static void __exit ir_core_exit(void)
static void __exit rc_core_exit(void)
{
class_unregister(&ir_input_class);
ir_unregister_map(&empty_map);
}

module_init(ir_core_init);
module_exit(ir_core_exit);
module_init(rc_core_init);
module_exit(rc_core_exit);

int ir_core_debug; /* ir_debug level (0,1,2) */
EXPORT_SYMBOL_GPL(ir_core_debug);
module_param_named(debug, ir_core_debug, int, 0644);
int rc_core_debug; /* ir_debug level (0,1,2) */
EXPORT_SYMBOL_GPL(rc_core_debug);
module_param_named(debug, rc_core_debug, int, 0644);

MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
MODULE_LICENSE("GPL");
2 changes: 1 addition & 1 deletion drivers/media/rc/rc-raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ static void init_decoders(struct work_struct *work)
load_lirc_codec();

/* If needed, we may later add some init code. In this case,
it is needed to change the CONFIG_MODULE test at ir-core.h
it is needed to change the CONFIG_MODULE test at rc-core.h
*/
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/streamzap.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/usb/input.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

#define DRIVER_VERSION "1.61"
#define DRIVER_NAME "streamzap"
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/winbond-cir.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#include <linux/io.h>
#include <linux/bitrev.h>
#include <linux/slab.h>
#include <media/ir-core.h>
#include <media/rc-core.h>

#define DRVNAME "winbond-cir"

Expand Down
Loading

0 comments on commit 6bda964

Please sign in to comment.