summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDonghwa Lee <dh09.lee@samsung.com>2013-08-07 14:20:08 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:57 +0900
commit946aed0f4db98a77b302accd0a6cf460b893b62f (patch)
tree75caec6112597ea25b6f91a30f449116336debb1 /drivers
parent9a8965fbe409a4020fbc8e683496900c8b432eb8 (diff)
downloadlinux-3.10-946aed0f4db98a77b302accd0a6cf460b893b62f.tar.gz
linux-3.10-946aed0f4db98a77b302accd0a6cf460b893b62f.tar.bz2
linux-3.10-946aed0f4db98a77b302accd0a6cf460b893b62f.zip
video: display: panel-s6d6aa1: remove useless function.
There is no usage for s6d6aa1_read_id(). Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/display/panel-s6d6aa1.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/video/display/panel-s6d6aa1.c b/drivers/video/display/panel-s6d6aa1.c
index 6f6080caa23..d48f926932f 100644
--- a/drivers/video/display/panel-s6d6aa1.c
+++ b/drivers/video/display/panel-s6d6aa1.c
@@ -128,16 +128,6 @@ static void s6d6aa1_apply_level_2_key(struct s6d6aa1 *lcd)
data_to_send, ARRAY_SIZE(data_to_send));
}
-static void s6d6aa1_read_id(struct s6d6aa1 *lcd, u8 *mtp_id)
-{
- dsi_dcs_read(lcd->entity.source, 0,
- 0xDA, &mtp_id[0], 1);
- dsi_dcs_read(lcd->entity.source, 0,
- 0xDB, &mtp_id[1], 1);
- dsi_dcs_read(lcd->entity.source, 0,
- 0xDC, &mtp_id[2], 1);
-}
-
static void s6d6aa1_write_ddb(struct s6d6aa1 *lcd)
{
const unsigned char data_to_send[] = {
@@ -427,24 +417,12 @@ static const struct backlight_ops s6d6aa1_backlight_ops = {
static int s6d6aa1_check_mtp(struct s6d6aa1 *lcd)
{
- u8 mtp_id[3] = {0, };
-
s6d6aa1_apply_level_1_key(lcd);
s6d6aa1_apply_level_2_key(lcd);
- s6d6aa1_read_id(lcd, mtp_id);
- if (mtp_id[0] == 0x00) {
- dev_err(lcd->dev, "read id failed\n");
- return -EIO;
- }
-
s6d6aa1_register_access_dis_1(lcd);
s6d6aa1_register_access_dis_2(lcd);
- lcd->ver = mtp_id[1];
- dev_info(lcd->dev, "Read ID : 0x%2x, 0x%2x, 0x%2x\n",
- mtp_id[0], mtp_id[1], mtp_id[2]);
-
return 0;
}