|
@@ -187,7 +187,7 @@ static void cec_devnode_unregister(struct cec_devnode *devnode)
|
|
put_device(&devnode->dev);
|
|
put_device(&devnode->dev);
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_MEDIA_CEC_NOTIFIER
|
|
|
|
|
|
+#ifdef CONFIG_CEC_NOTIFIER
|
|
static void cec_cec_notify(struct cec_adapter *adap, u16 pa)
|
|
static void cec_cec_notify(struct cec_adapter *adap, u16 pa)
|
|
{
|
|
{
|
|
cec_s_phys_addr(adap, pa, false);
|
|
cec_s_phys_addr(adap, pa, false);
|
|
@@ -323,7 +323,7 @@ int cec_register_adapter(struct cec_adapter *adap,
|
|
}
|
|
}
|
|
|
|
|
|
dev_set_drvdata(&adap->devnode.dev, adap);
|
|
dev_set_drvdata(&adap->devnode.dev, adap);
|
|
-#ifdef CONFIG_MEDIA_CEC_DEBUG
|
|
|
|
|
|
+#ifdef CONFIG_DEBUG_FS
|
|
if (!top_cec_dir)
|
|
if (!top_cec_dir)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
@@ -355,7 +355,7 @@ void cec_unregister_adapter(struct cec_adapter *adap)
|
|
adap->rc = NULL;
|
|
adap->rc = NULL;
|
|
#endif
|
|
#endif
|
|
debugfs_remove_recursive(adap->cec_dir);
|
|
debugfs_remove_recursive(adap->cec_dir);
|
|
-#ifdef CONFIG_MEDIA_CEC_NOTIFIER
|
|
|
|
|
|
+#ifdef CONFIG_CEC_NOTIFIER
|
|
if (adap->notifier)
|
|
if (adap->notifier)
|
|
cec_notifier_unregister(adap->notifier);
|
|
cec_notifier_unregister(adap->notifier);
|
|
#endif
|
|
#endif
|
|
@@ -395,7 +395,7 @@ static int __init cec_devnode_init(void)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_MEDIA_CEC_DEBUG
|
|
|
|
|
|
+#ifdef CONFIG_DEBUG_FS
|
|
top_cec_dir = debugfs_create_dir("cec", NULL);
|
|
top_cec_dir = debugfs_create_dir("cec", NULL);
|
|
if (IS_ERR_OR_NULL(top_cec_dir)) {
|
|
if (IS_ERR_OR_NULL(top_cec_dir)) {
|
|
pr_warn("cec: Failed to create debugfs cec dir\n");
|
|
pr_warn("cec: Failed to create debugfs cec dir\n");
|