diff options
author | Lespiau, Damien <damien.lespiau@intel.com> | 2014-03-24 11:53:11 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-03-27 22:57:08 -0400 |
commit | c7cc51246abc159de94af03264e73ee37bd86afe (patch) | |
tree | 7fcc40c23e5a768ddde422ef5952ac93005dd519 /drivers/gpu/drm/gma500 | |
parent | 133dcdebb205b8918ae31ef79323c94923944f23 (diff) |
drm/gma500: Replace DRM_LOG_KMS() by DRM_DEBUG_KMS()
There are only a few users of the DRM_LOG_KMS() macro. We can simplify
the DRM code a bit by replacing them by DRM_DEBUG_KMS().
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r-- | drivers/gpu/drm/gma500/psb_intel_sdvo.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/gma500/psb_intel_sdvo.c b/drivers/gpu/drm/gma500/psb_intel_sdvo.c index 07d3a9e6d79b..681efecb718b 100644 --- a/drivers/gpu/drm/gma500/psb_intel_sdvo.c +++ b/drivers/gpu/drm/gma500/psb_intel_sdvo.c | |||
@@ -406,18 +406,18 @@ static void psb_intel_sdvo_debug_write(struct psb_intel_sdvo *psb_intel_sdvo, u8 | |||
406 | DRM_DEBUG_KMS("%s: W: %02X ", | 406 | DRM_DEBUG_KMS("%s: W: %02X ", |
407 | SDVO_NAME(psb_intel_sdvo), cmd); | 407 | SDVO_NAME(psb_intel_sdvo), cmd); |
408 | for (i = 0; i < args_len; i++) | 408 | for (i = 0; i < args_len; i++) |
409 | DRM_LOG_KMS("%02X ", ((u8 *)args)[i]); | 409 | DRM_DEBUG_KMS("%02X ", ((u8 *)args)[i]); |
410 | for (; i < 8; i++) | 410 | for (; i < 8; i++) |
411 | DRM_LOG_KMS(" "); | 411 | DRM_DEBUG_KMS(" "); |
412 | for (i = 0; i < ARRAY_SIZE(sdvo_cmd_names); i++) { | 412 | for (i = 0; i < ARRAY_SIZE(sdvo_cmd_names); i++) { |
413 | if (cmd == sdvo_cmd_names[i].cmd) { | 413 | if (cmd == sdvo_cmd_names[i].cmd) { |
414 | DRM_LOG_KMS("(%s)", sdvo_cmd_names[i].name); | 414 | DRM_DEBUG_KMS("(%s)", sdvo_cmd_names[i].name); |
415 | break; | 415 | break; |
416 | } | 416 | } |
417 | } | 417 | } |
418 | if (i == ARRAY_SIZE(sdvo_cmd_names)) | 418 | if (i == ARRAY_SIZE(sdvo_cmd_names)) |
419 | DRM_LOG_KMS("(%02X)", cmd); | 419 | DRM_DEBUG_KMS("(%02X)", cmd); |
420 | DRM_LOG_KMS("\n"); | 420 | DRM_DEBUG_KMS("\n"); |
421 | } | 421 | } |
422 | 422 | ||
423 | static const char *cmd_status_names[] = { | 423 | static const char *cmd_status_names[] = { |
@@ -512,9 +512,9 @@ static bool psb_intel_sdvo_read_response(struct psb_intel_sdvo *psb_intel_sdvo, | |||
512 | } | 512 | } |
513 | 513 | ||
514 | if (status <= SDVO_CMD_STATUS_SCALING_NOT_SUPP) | 514 | if (status <= SDVO_CMD_STATUS_SCALING_NOT_SUPP) |
515 | DRM_LOG_KMS("(%s)", cmd_status_names[status]); | 515 | DRM_DEBUG_KMS("(%s)", cmd_status_names[status]); |
516 | else | 516 | else |
517 | DRM_LOG_KMS("(??? %d)", status); | 517 | DRM_DEBUG_KMS("(??? %d)", status); |
518 | 518 | ||
519 | if (status != SDVO_CMD_STATUS_SUCCESS) | 519 | if (status != SDVO_CMD_STATUS_SUCCESS) |
520 | goto log_fail; | 520 | goto log_fail; |
@@ -525,13 +525,13 @@ static bool psb_intel_sdvo_read_response(struct psb_intel_sdvo *psb_intel_sdvo, | |||
525 | SDVO_I2C_RETURN_0 + i, | 525 | SDVO_I2C_RETURN_0 + i, |
526 | &((u8 *)response)[i])) | 526 | &((u8 *)response)[i])) |
527 | goto log_fail; | 527 | goto log_fail; |
528 | DRM_LOG_KMS(" %02X", ((u8 *)response)[i]); | 528 | DRM_DEBUG_KMS(" %02X", ((u8 *)response)[i]); |
529 | } | 529 | } |
530 | DRM_LOG_KMS("\n"); | 530 | DRM_DEBUG_KMS("\n"); |
531 | return true; | 531 | return true; |
532 | 532 | ||
533 | log_fail: | 533 | log_fail: |
534 | DRM_LOG_KMS("... failed\n"); | 534 | DRM_DEBUG_KMS("... failed\n"); |
535 | return false; | 535 | return false; |
536 | } | 536 | } |
537 | 537 | ||