mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
UPSTREAM: [media] cec: rename MEDIA_CEC_NOTIFIER to CEC_NOTIFIER
This config option is strictly speaking independent of the
media subsystem since it can be used by drm as well.
Besides, it looks odd when drivers select CEC_CORE and
MEDIA_CEC_NOTIFIER, that's inconsistent naming.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
(cherry picked from commit e94c32818d)
Change-Id: I6f89afe3b6f0bca110451ece5ef3ecb12c2922bb
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
parent
1155eb62e8
commit
c60acde65a
|
|
@ -5,7 +5,7 @@
|
|||
config CEC_CORE
|
||||
tristate
|
||||
|
||||
config MEDIA_CEC_NOTIFIER
|
||||
config CEC_NOTIFIER
|
||||
bool
|
||||
|
||||
menuconfig MEDIA_SUPPORT
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
cec-objs := cec-core.o cec-adap.o cec-api.o cec-edid.o
|
||||
|
||||
ifeq ($(CONFIG_MEDIA_CEC_NOTIFIER),y)
|
||||
ifeq ($(CONFIG_CEC_NOTIFIER),y)
|
||||
cec-objs += cec-notifier.o
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ static void cec_devnode_unregister(struct cec_devnode *devnode)
|
|||
put_device(&devnode->dev);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MEDIA_CEC_NOTIFIER
|
||||
#ifdef CONFIG_CEC_NOTIFIER
|
||||
static void cec_cec_notify(struct cec_adapter *adap, u16 pa)
|
||||
{
|
||||
cec_s_phys_addr(adap, pa, false);
|
||||
|
|
@ -363,7 +363,7 @@ void cec_unregister_adapter(struct cec_adapter *adap)
|
|||
adap->rc = NULL;
|
||||
#endif
|
||||
debugfs_remove_recursive(adap->cec_dir);
|
||||
#ifdef CONFIG_MEDIA_CEC_NOTIFIER
|
||||
#ifdef CONFIG_CEC_NOTIFIER
|
||||
if (adap->notifier)
|
||||
cec_notifier_unregister(adap->notifier);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ struct edid;
|
|||
struct cec_adapter;
|
||||
struct cec_notifier;
|
||||
|
||||
#ifdef CONFIG_MEDIA_CEC_NOTIFIER
|
||||
#if IS_REACHABLE(CONFIG_CEC_CORE) && IS_ENABLED(CONFIG_CEC_NOTIFIER)
|
||||
|
||||
/**
|
||||
* cec_notifier_get - find or create a new cec_notifier for the given device.
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ struct cec_adapter {
|
|||
bool passthrough;
|
||||
struct cec_log_addrs log_addrs;
|
||||
|
||||
#ifdef CONFIG_MEDIA_CEC_NOTIFIER
|
||||
#ifdef CONFIG_CEC_NOTIFIER
|
||||
struct cec_notifier *notifier;
|
||||
#endif
|
||||
|
||||
|
|
@ -295,7 +295,7 @@ u16 cec_phys_addr_for_input(u16 phys_addr, u8 input);
|
|||
*/
|
||||
int cec_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port);
|
||||
|
||||
#ifdef CONFIG_MEDIA_CEC_NOTIFIER
|
||||
#ifdef CONFIG_CEC_NOTIFIER
|
||||
void cec_register_cec_notifier(struct cec_adapter *adap,
|
||||
struct cec_notifier *notifier);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user