msm_fb: HDMI: Switch device node for HDMI
Add switch device node for HDMI on initialization. Final node path
will be /devices/virtual/switch/hdmi
Set the node state to 1 on HDMI cable connect event, and successful
HDCP authentication, if applicable.
Set the node state to 0 on HDMI cable disconnect, HPD off events and
HDCP authentication failure.
Change-Id: I3496169f73a768a7908e8c633ab4dfb70c42f940
Signed-off-by: Saurabh Shah <saurshah@codeaurora.org>
diff --git a/drivers/video/msm/external_common.h b/drivers/video/msm/external_common.h
index 2a243cd..c9ab88e 100644
--- a/drivers/video/msm/external_common.h
+++ b/drivers/video/msm/external_common.h
@@ -12,6 +12,7 @@
*/
#ifndef __EXTERNAL_COMMON_H__
#define __EXTERNAL_COMMON_H__
+#include <linux/switch.h>
#ifdef DEBUG
#ifndef DEV_DBG_PREFIX
@@ -202,6 +203,7 @@
struct kobject *uevent_kobj;
uint32 video_resolution;
struct device *dev;
+ struct switch_dev sdev;
#ifdef CONFIG_FB_MSM_HDMI_3D
boolean format_3d;
void (*switch_3d)(boolean on);