summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAjay Singh Parmar <aparmar@codeaurora.org>2016-01-15 16:15:25 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:17:41 -0700
commit64ee8f9ae5595c762660d81bd362cb42d3ddae7b (patch)
tree41db66f24749685cc8d5949624cd451c22e4015a
parent9b7e27023ad9d21599b5b76245969260dcf55928 (diff)
msm: mdss: hdmi: remove unnecessary sysfs nodes
Remove dead code of sysfs node implementations which are not being used to avoid any possible compliance issues related to sysfs nodes. Change-Id: Ida43cbd04c7b8ec6ad79e9a4c66a7725920ba116 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_hdmi_hdcp2p2.c90
1 files changed, 0 insertions, 90 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_hdcp2p2.c b/drivers/video/fbdev/msm/mdss_hdmi_hdcp2p2.c
index ca321f18b51f..85175d69d6f1 100644
--- a/drivers/video/fbdev/msm/mdss_hdmi_hdcp2p2.c
+++ b/drivers/video/fbdev/msm/mdss_hdmi_hdcp2p2.c
@@ -333,26 +333,6 @@ static int hdmi_hdcp2p2_reauthenticate(void *input)
return hdmi_hdcp2p2_authenticate(input);
}
-static ssize_t hdmi_hdcp2p2_sysfs_rda_sink_status(struct device *dev,
- struct device_attribute *attr, char *buf)
-{
- struct hdmi_hdcp2p2_ctrl *ctrl =
- hdmi_get_featuredata_from_sysfs_dev(dev, HDMI_TX_FEAT_HDCP2P2);
- ssize_t ret;
-
- if (!ctrl) {
- pr_err("invalid input\n");
- return -EINVAL;
- }
-
- mutex_lock(&ctrl->mutex);
- if (ctrl->sink_status == SINK_CONNECTED)
- ret = scnprintf(buf, PAGE_SIZE, "Connected\n");
- else
- ret = scnprintf(buf, PAGE_SIZE, "Disconnected\n");
- mutex_unlock(&ctrl->mutex);
- return ret;
-}
static ssize_t hdmi_hdcp2p2_sysfs_rda_tethered(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -402,48 +382,6 @@ exit:
return count;
}
-static ssize_t hdmi_hdcp2p2_sysfs_rda_trigger(struct device *dev,
- struct device_attribute *attr, char *buf)
-{
- ssize_t ret;
- struct hdmi_hdcp2p2_ctrl *ctrl =
- hdmi_get_featuredata_from_sysfs_dev(dev, HDMI_TX_FEAT_HDCP2P2);
-
- if (!ctrl) {
- pr_err("invalid input\n");
- return -EINVAL;
- }
-
- mutex_lock(&ctrl->mutex);
- if (ctrl->sink_status == SINK_CONNECTED)
- ret = scnprintf(buf, PAGE_SIZE, "Triggered\n");
- else
- ret = scnprintf(buf, PAGE_SIZE, "Not triggered\n");
- mutex_unlock(&ctrl->mutex);
-
- return ret;
-}
-
-static ssize_t hdmi_hdcp2p2_sysfs_wta_trigger(struct device *dev,
- struct device_attribute *attr, const char *buf, size_t count)
-{
- struct hdmi_hdcp2p2_ctrl *ctrl =
- hdmi_get_featuredata_from_sysfs_dev(dev, HDMI_TX_FEAT_HDCP2P2);
-
- if (!ctrl) {
- pr_err("invalid input\n");
- return -EINVAL;
- }
-
- mutex_lock(&ctrl->mutex);
- ctrl->sink_status = SINK_CONNECTED;
- mutex_unlock(&ctrl->mutex);
-
- pr_debug("HDCP 2.2 authentication triggered\n");
- hdmi_hdcp2p2_authenticate(ctrl);
- return count;
-}
-
static ssize_t hdmi_hdcp2p2_sysfs_wta_min_level_change(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
@@ -600,41 +538,13 @@ static int hdmi_hdcp2p2_read_version(struct hdmi_hdcp2p2_ctrl *ctrl,
return rc;
}
-static ssize_t hdmi_hdcp2p2_sysfs_rda_hdcp2_version(struct device *dev,
- struct device_attribute *attr, char *buf)
-{
- u8 hdcp2version;
- ssize_t ret;
- struct hdmi_hdcp2p2_ctrl *ctrl =
- hdmi_get_featuredata_from_sysfs_dev(dev, HDMI_TX_FEAT_HDCP2P2);
-
- if (!ctrl) {
- pr_err("invalid input\n");
- return -EINVAL;
- }
- ret = hdmi_hdcp2p2_read_version(ctrl, &hdcp2version);
- if (ret < 0)
- return ret;
- return snprintf(buf, PAGE_SIZE, "%u\n", hdcp2version);
-}
-
-
-static DEVICE_ATTR(trigger, S_IRUGO | S_IWUSR, hdmi_hdcp2p2_sysfs_rda_trigger,
- hdmi_hdcp2p2_sysfs_wta_trigger);
static DEVICE_ATTR(min_level_change, S_IWUSR, NULL,
hdmi_hdcp2p2_sysfs_wta_min_level_change);
-static DEVICE_ATTR(sink_status, S_IRUGO, hdmi_hdcp2p2_sysfs_rda_sink_status,
- NULL);
-static DEVICE_ATTR(hdcp2_version, S_IRUGO, hdmi_hdcp2p2_sysfs_rda_hdcp2_version,
- NULL);
static DEVICE_ATTR(tethered, S_IRUGO | S_IWUSR, hdmi_hdcp2p2_sysfs_rda_tethered,
hdmi_hdcp2p2_sysfs_wta_tethered);
static struct attribute *hdmi_hdcp2p2_fs_attrs[] = {
- &dev_attr_trigger.attr,
&dev_attr_min_level_change.attr,
- &dev_attr_sink_status.attr,
- &dev_attr_hdcp2_version.attr,
&dev_attr_tethered.attr,
NULL,
};