aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos/exynos_drm_vidi.c
diff options
context:
space:
mode:
authorYoungJun Cho <yj44.cho@samsung.com>2013-06-11 21:40:52 -0400
committerInki Dae <daeinki@gmail.com>2013-06-28 08:13:55 -0400
commitbca34c9a40e503e9bc6bafa45819dd55c2fd3e20 (patch)
treeea64864db171020d766dcdb0469e7ab26fe2c7bc /drivers/gpu/drm/exynos/exynos_drm_vidi.c
parent16844fb1e612e44cdda7043238230b12bdb68437 (diff)
drm/exynos: Remove tracking log functions
This patch removes tracking log functions which were used to debug in the early development stage and are not so important as were. So remove them for code clean up. Signed-off-by: YoungJun Cho <yj44.cho@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_vidi.c')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_vidi.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
index 294ba35efa5b..784bbce0741a 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
@@ -89,8 +89,6 @@ static bool vidi_display_is_connected(struct device *dev)
89{ 89{
90 struct vidi_context *ctx = get_vidi_context(dev); 90 struct vidi_context *ctx = get_vidi_context(dev);
91 91
92 DRM_DEBUG_KMS("%s\n", __FILE__);
93
94 /* 92 /*
95 * connection request would come from user side 93 * connection request would come from user side
96 * to do hotplug through specific ioctl. 94 * to do hotplug through specific ioctl.
@@ -105,8 +103,6 @@ static struct edid *vidi_get_edid(struct device *dev,
105 struct edid *edid; 103 struct edid *edid;
106 int edid_len; 104 int edid_len;
107 105
108 DRM_DEBUG_KMS("%s\n", __FILE__);
109
110 /* 106 /*
111 * the edid data comes from user side and it would be set 107 * the edid data comes from user side and it would be set
112 * to ctx->raw_edid through specific ioctl. 108 * to ctx->raw_edid through specific ioctl.
@@ -128,8 +124,6 @@ static struct edid *vidi_get_edid(struct device *dev,
128 124
129static void *vidi_get_panel(struct device *dev) 125static void *vidi_get_panel(struct device *dev)
130{ 126{
131 DRM_DEBUG_KMS("%s\n", __FILE__);
132
133 /* TODO. */ 127 /* TODO. */
134 128
135 return NULL; 129 return NULL;
@@ -137,8 +131,6 @@ static void *vidi_get_panel(struct device *dev)
137 131
138static int vidi_check_mode(struct device *dev, struct drm_display_mode *mode) 132static int vidi_check_mode(struct device *dev, struct drm_display_mode *mode)
139{ 133{
140 DRM_DEBUG_KMS("%s\n", __FILE__);
141
142 /* TODO. */ 134 /* TODO. */
143 135
144 return 0; 136 return 0;
@@ -146,8 +138,6 @@ static int vidi_check_mode(struct device *dev, struct drm_display_mode *mode)
146 138
147static int vidi_display_power_on(struct device *dev, int mode) 139static int vidi_display_power_on(struct device *dev, int mode)
148{ 140{
149 DRM_DEBUG_KMS("%s\n", __FILE__);
150
151 /* TODO */ 141 /* TODO */
152 142
153 return 0; 143 return 0;
@@ -166,7 +156,7 @@ static void vidi_dpms(struct device *subdrv_dev, int mode)
166{ 156{
167 struct vidi_context *ctx = get_vidi_context(subdrv_dev); 157 struct vidi_context *ctx = get_vidi_context(subdrv_dev);
168 158
169 DRM_DEBUG_KMS("%s, %d\n", __FILE__, mode); 159 DRM_DEBUG_KMS("%d\n", mode);
170 160
171 mutex_lock(&ctx->lock); 161 mutex_lock(&ctx->lock);
172 162
@@ -196,8 +186,6 @@ static void vidi_apply(struct device *subdrv_dev)
196 struct vidi_win_data *win_data; 186 struct vidi_win_data *win_data;
197 int i; 187 int i;
198 188
199 DRM_DEBUG_KMS("%s\n", __FILE__);
200
201 for (i = 0; i < WINDOWS_NR; i++) { 189 for (i = 0; i < WINDOWS_NR; i++) {
202 win_data = &ctx->win_data[i]; 190 win_data = &ctx->win_data[i];
203 if (win_data->enabled && (ovl_ops && ovl_ops->commit)) 191 if (win_data->enabled && (ovl_ops && ovl_ops->commit))
@@ -212,8 +200,6 @@ static void vidi_commit(struct device *dev)
212{ 200{
213 struct vidi_context *ctx = get_vidi_context(dev); 201 struct vidi_context *ctx = get_vidi_context(dev);
214 202
215 DRM_DEBUG_KMS("%s\n", __FILE__);
216
217 if (ctx->suspended) 203 if (ctx->suspended)
218 return; 204 return;
219} 205}
@@ -222,8 +208,6 @@ static int vidi_enable_vblank(struct device *dev)
222{ 208{
223 struct vidi_context *ctx = get_vidi_context(dev); 209 struct vidi_context *ctx = get_vidi_context(dev);
224 210
225 DRM_DEBUG_KMS("%s\n", __FILE__);
226
227 if (ctx->suspended) 211 if (ctx->suspended)
228 return -EPERM; 212 return -EPERM;
229 213
@@ -246,8 +230,6 @@ static void vidi_disable_vblank(struct device *dev)
246{ 230{
247 struct vidi_context *ctx = get_vidi_context(dev); 231 struct vidi_context *ctx = get_vidi_context(dev);
248 232
249 DRM_DEBUG_KMS("%s\n", __FILE__);
250
251 if (ctx->suspended) 233 if (ctx->suspended)
252 return; 234 return;
253 235
@@ -271,8 +253,6 @@ static void vidi_win_mode_set(struct device *dev,
271 int win; 253 int win;
272 unsigned long offset; 254 unsigned long offset;
273 255
274 DRM_DEBUG_KMS("%s\n", __FILE__);
275
276 if (!overlay) { 256 if (!overlay) {
277 dev_err(dev, "overlay is NULL\n"); 257 dev_err(dev, "overlay is NULL\n");
278 return; 258 return;
@@ -324,8 +304,6 @@ static void vidi_win_commit(struct device *dev, int zpos)
324 struct vidi_win_data *win_data; 304 struct vidi_win_data *win_data;
325 int win = zpos; 305 int win = zpos;
326 306
327 DRM_DEBUG_KMS("%s\n", __FILE__);
328
329 if (ctx->suspended) 307 if (ctx->suspended)
330 return; 308 return;
331 309
@@ -351,8 +329,6 @@ static void vidi_win_disable(struct device *dev, int zpos)
351 struct vidi_win_data *win_data; 329 struct vidi_win_data *win_data;
352 int win = zpos; 330 int win = zpos;
353 331
354 DRM_DEBUG_KMS("%s\n", __FILE__);
355
356 if (win == DEFAULT_ZPOS) 332 if (win == DEFAULT_ZPOS)
357 win = ctx->default_win; 333 win = ctx->default_win;
358 334
@@ -407,8 +383,6 @@ static void vidi_fake_vblank_handler(struct work_struct *work)
407 383
408static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev) 384static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
409{ 385{
410 DRM_DEBUG_KMS("%s\n", __FILE__);
411
412 /* 386 /*
413 * enable drm irq mode. 387 * enable drm irq mode.
414 * - with irq_enabled = 1, we can use the vblank feature. 388 * - with irq_enabled = 1, we can use the vblank feature.
@@ -431,8 +405,6 @@ static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
431 405
432static void vidi_subdrv_remove(struct drm_device *drm_dev, struct device *dev) 406static void vidi_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
433{ 407{
434 DRM_DEBUG_KMS("%s\n", __FILE__);
435
436 /* TODO. */ 408 /* TODO. */
437} 409}
438 410
@@ -441,8 +413,6 @@ static int vidi_power_on(struct vidi_context *ctx, bool enable)
441 struct exynos_drm_subdrv *subdrv = &ctx->subdrv; 413 struct exynos_drm_subdrv *subdrv = &ctx->subdrv;
442 struct device *dev = subdrv->dev; 414 struct device *dev = subdrv->dev;
443 415
444 DRM_DEBUG_KMS("%s\n", __FILE__);
445
446 if (enable != false && enable != true) 416 if (enable != false && enable != true)
447 return -EINVAL; 417 return -EINVAL;
448 418
@@ -483,8 +453,6 @@ static int vidi_store_connection(struct device *dev,
483 struct vidi_context *ctx = get_vidi_context(dev); 453 struct vidi_context *ctx = get_vidi_context(dev);
484 int ret; 454 int ret;
485 455
486 DRM_DEBUG_KMS("%s\n", __FILE__);
487
488 ret = kstrtoint(buf, 0, &ctx->connected); 456 ret = kstrtoint(buf, 0, &ctx->connected);
489 if (ret) 457 if (ret)
490 return ret; 458 return ret;
@@ -522,8 +490,6 @@ int vidi_connection_ioctl(struct drm_device *drm_dev, void *data,
522 struct drm_exynos_vidi_connection *vidi = data; 490 struct drm_exynos_vidi_connection *vidi = data;
523 int edid_len; 491 int edid_len;
524 492
525 DRM_DEBUG_KMS("%s\n", __FILE__);
526
527 if (!vidi) { 493 if (!vidi) {
528 DRM_DEBUG_KMS("user data for vidi is null.\n"); 494 DRM_DEBUG_KMS("user data for vidi is null.\n");
529 return -EINVAL; 495 return -EINVAL;
@@ -592,8 +558,6 @@ static int vidi_probe(struct platform_device *pdev)
592 struct exynos_drm_subdrv *subdrv; 558 struct exynos_drm_subdrv *subdrv;
593 int ret; 559 int ret;
594 560
595 DRM_DEBUG_KMS("%s\n", __FILE__);
596
597 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); 561 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
598 if (!ctx) 562 if (!ctx)
599 return -ENOMEM; 563 return -ENOMEM;
@@ -625,8 +589,6 @@ static int vidi_remove(struct platform_device *pdev)
625{ 589{
626 struct vidi_context *ctx = platform_get_drvdata(pdev); 590 struct vidi_context *ctx = platform_get_drvdata(pdev);
627 591
628 DRM_DEBUG_KMS("%s\n", __FILE__);
629
630 exynos_drm_subdrv_unregister(&ctx->subdrv); 592 exynos_drm_subdrv_unregister(&ctx->subdrv);
631 593
632 if (ctx->raw_edid != (struct edid *)fake_edid_info) { 594 if (ctx->raw_edid != (struct edid *)fake_edid_info) {