Commit 1643a9c6 authored by Christoph Jaeger's avatar Christoph Jaeger Committed by Daniel Vetter

drm/i915: drop __FUNCTION__ as argument to DRM_DEBUG_KMS

DRM_DEBUG_KMS includes printing the function name.
Signed-off-by: default avatarChristoph Jaeger <christophjaeger@linux.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 068be561
...@@ -233,9 +233,8 @@ static enum drm_mode_status ns2501_mode_valid(struct intel_dvo_device *dvo, ...@@ -233,9 +233,8 @@ static enum drm_mode_status ns2501_mode_valid(struct intel_dvo_device *dvo,
struct drm_display_mode *mode) struct drm_display_mode *mode)
{ {
DRM_DEBUG_KMS DRM_DEBUG_KMS
("%s: is mode valid (hdisplay=%d,htotal=%d,vdisplay=%d,vtotal=%d)\n", ("is mode valid (hdisplay=%d,htotal=%d,vdisplay=%d,vtotal=%d)\n",
__FUNCTION__, mode->hdisplay, mode->htotal, mode->vdisplay, mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal);
mode->vtotal);
/* /*
* Currently, these are all the modes I have data from. * Currently, these are all the modes I have data from.
...@@ -261,9 +260,8 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo, ...@@ -261,9 +260,8 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo,
struct ns2501_priv *ns = (struct ns2501_priv *)(dvo->dev_priv); struct ns2501_priv *ns = (struct ns2501_priv *)(dvo->dev_priv);
DRM_DEBUG_KMS DRM_DEBUG_KMS
("%s: set mode (hdisplay=%d,htotal=%d,vdisplay=%d,vtotal=%d).\n", ("set mode (hdisplay=%d,htotal=%d,vdisplay=%d,vtotal=%d).\n",
__FUNCTION__, mode->hdisplay, mode->htotal, mode->vdisplay, mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal);
mode->vtotal);
/* /*
* Where do I find the native resolution for which scaling is not required??? * Where do I find the native resolution for which scaling is not required???
...@@ -277,8 +275,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo, ...@@ -277,8 +275,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo,
if (mode->hdisplay == 800 && mode->vdisplay == 600) { if (mode->hdisplay == 800 && mode->vdisplay == 600) {
/* mode 277 */ /* mode 277 */
ns->reg_8_shadow &= ~NS2501_8_BPAS; ns->reg_8_shadow &= ~NS2501_8_BPAS;
DRM_DEBUG_KMS("%s: switching to 800x600\n", DRM_DEBUG_KMS("switching to 800x600\n");
__FUNCTION__);
/* /*
* No, I do not know where this data comes from. * No, I do not know where this data comes from.
...@@ -341,8 +338,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo, ...@@ -341,8 +338,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo,
} else if (mode->hdisplay == 640 && mode->vdisplay == 480) { } else if (mode->hdisplay == 640 && mode->vdisplay == 480) {
/* mode 274 */ /* mode 274 */
DRM_DEBUG_KMS("%s: switching to 640x480\n", DRM_DEBUG_KMS("switching to 640x480\n");
__FUNCTION__);
/* /*
* No, I do not know where this data comes from. * No, I do not know where this data comes from.
* It is just what the video bios left in the DVO, so * It is just what the video bios left in the DVO, so
...@@ -406,8 +402,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo, ...@@ -406,8 +402,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo,
} else if (mode->hdisplay == 1024 && mode->vdisplay == 768) { } else if (mode->hdisplay == 1024 && mode->vdisplay == 768) {
/* mode 280 */ /* mode 280 */
DRM_DEBUG_KMS("%s: switching to 1024x768\n", DRM_DEBUG_KMS("switching to 1024x768\n");
__FUNCTION__);
/* /*
* This might or might not work, actually. I'm silently * This might or might not work, actually. I'm silently
* assuming here that the native panel resolution is * assuming here that the native panel resolution is
...@@ -458,8 +453,7 @@ static void ns2501_dpms(struct intel_dvo_device *dvo, bool enable) ...@@ -458,8 +453,7 @@ static void ns2501_dpms(struct intel_dvo_device *dvo, bool enable)
struct ns2501_priv *ns = (struct ns2501_priv *)(dvo->dev_priv); struct ns2501_priv *ns = (struct ns2501_priv *)(dvo->dev_priv);
unsigned char ch; unsigned char ch;
DRM_DEBUG_KMS("%s: Trying set the dpms of the DVO to %i\n", DRM_DEBUG_KMS("Trying set the dpms of the DVO to %i\n", enable);
__FUNCTION__, enable);
ch = ns->reg_8_shadow; ch = ns->reg_8_shadow;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment