aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorMoyster <oysterized@gmail.com>2017-09-23 03:10:48 +0200
committerMoyster <oysterized@gmail.com>2017-09-23 03:10:48 +0200
commitb8d1e07edc8d57883bf4b6ca70228b5a9e6b98b2 (patch)
treeb9c284cc99fc24d884b4dedc7100e5881a35011f /drivers/gpu/drm
parentfa4d1db09a4946ad8ba42514687c6b8a3603d623 (diff)
misc: replace __FUNCTION__ by __function__
result of : git grep -l '__FUNCTION__' | xargs sed -i 's/__FUNCTION__/__func__/g'
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/dvo_ns2501.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/dvo_ns2501.c b/drivers/gpu/drm/i915/dvo_ns2501.c
index c4a255be6..74d9899b7 100644
--- a/drivers/gpu/drm/i915/dvo_ns2501.c
+++ b/drivers/gpu/drm/i915/dvo_ns2501.c
@@ -96,7 +96,7 @@ static void enable_dvo(struct intel_dvo_device *dvo)
adapter);
struct drm_i915_private *dev_priv = bus->dev_priv;
- DRM_DEBUG_KMS("%s: Trying to re-enable the DVO\n", __FUNCTION__);
+ DRM_DEBUG_KMS("%s: Trying to re-enable the DVO\n", __func__);
ns->dvoc = I915_READ(DVO_C);
ns->pll_a = I915_READ(_DPLL_A);
@@ -277,7 +277,7 @@ static enum drm_mode_status ns2501_mode_valid(struct intel_dvo_device *dvo,
{
DRM_DEBUG_KMS
("%s: is mode valid (hdisplay=%d,htotal=%d,vdisplay=%d,vtotal=%d)\n",
- __FUNCTION__, mode->hdisplay, mode->htotal, mode->vdisplay,
+ __func__, mode->hdisplay, mode->htotal, mode->vdisplay,
mode->vtotal);
/*
@@ -305,7 +305,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo,
DRM_DEBUG_KMS
("%s: set mode (hdisplay=%d,htotal=%d,vdisplay=%d,vtotal=%d).\n",
- __FUNCTION__, mode->hdisplay, mode->htotal, mode->vdisplay,
+ __func__, mode->hdisplay, mode->htotal, mode->vdisplay,
mode->vtotal);
/*
@@ -321,7 +321,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo,
/* mode 277 */
ns->reg_8_shadow &= ~NS2501_8_BPAS;
DRM_DEBUG_KMS("%s: switching to 800x600\n",
- __FUNCTION__);
+ __func__);
/*
* No, I do not know where this data comes from.
@@ -385,7 +385,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo,
} else if (mode->hdisplay == 640 && mode->vdisplay == 480) {
/* mode 274 */
DRM_DEBUG_KMS("%s: switching to 640x480\n",
- __FUNCTION__);
+ __func__);
/*
* No, I do not know where this data comes from.
* It is just what the video bios left in the DVO, so
@@ -450,7 +450,7 @@ static void ns2501_mode_set(struct intel_dvo_device *dvo,
} else if (mode->hdisplay == 1024 && mode->vdisplay == 768) {
/* mode 280 */
DRM_DEBUG_KMS("%s: switching to 1024x768\n",
- __FUNCTION__);
+ __func__);
/*
* This might or might not work, actually. I'm silently
* assuming here that the native panel resolution is
@@ -515,7 +515,7 @@ static void ns2501_dpms(struct intel_dvo_device *dvo, bool enable)
unsigned char ch;
DRM_DEBUG_KMS("%s: Trying set the dpms of the DVO to %i\n",
- __FUNCTION__, enable);
+ __func__, enable);
ch = ns->reg_8_shadow;