aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_sysfs.c
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2012-09-07 22:43:38 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-09-20 08:22:59 -0400
commitdbdfd8e90c81d0fbabe7f392293f1f28d0cf3c48 (patch)
tree25c9ad14404596e87e0a0809a4f5b1d41f36e7ef /drivers/gpu/drm/i915/i915_sysfs.c
parent6591c6e4d7d5d0020b91e960e2fe52e0ba6b2a24 (diff)
drm/i915: variable renames
Name variables a bit better for copy-pasters. This got turned up as part of review for upcoming sysfs patches. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_sysfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_sysfs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c
index da733a3fe1ef..c701a173bd48 100644
--- a/drivers/gpu/drm/i915/i915_sysfs.c
+++ b/drivers/gpu/drm/i915/i915_sysfs.c
@@ -46,32 +46,32 @@ static u32 calc_residency(struct drm_device *dev, const u32 reg)
46} 46}
47 47
48static ssize_t 48static ssize_t
49show_rc6_mask(struct device *dev, struct device_attribute *attr, char *buf) 49show_rc6_mask(struct device *kdev, struct device_attribute *attr, char *buf)
50{ 50{
51 struct drm_minor *dminor = container_of(dev, struct drm_minor, kdev); 51 struct drm_minor *dminor = container_of(kdev, struct drm_minor, kdev);
52 return snprintf(buf, PAGE_SIZE, "%x", intel_enable_rc6(dminor->dev)); 52 return snprintf(buf, PAGE_SIZE, "%x", intel_enable_rc6(dminor->dev));
53} 53}
54 54
55static ssize_t 55static ssize_t
56show_rc6_ms(struct device *dev, struct device_attribute *attr, char *buf) 56show_rc6_ms(struct device *kdev, struct device_attribute *attr, char *buf)
57{ 57{
58 struct drm_minor *dminor = container_of(dev, struct drm_minor, kdev); 58 struct drm_minor *dminor = container_of(kdev, struct drm_minor, kdev);
59 u32 rc6_residency = calc_residency(dminor->dev, GEN6_GT_GFX_RC6); 59 u32 rc6_residency = calc_residency(dminor->dev, GEN6_GT_GFX_RC6);
60 return snprintf(buf, PAGE_SIZE, "%u", rc6_residency); 60 return snprintf(buf, PAGE_SIZE, "%u", rc6_residency);
61} 61}
62 62
63static ssize_t 63static ssize_t
64show_rc6p_ms(struct device *dev, struct device_attribute *attr, char *buf) 64show_rc6p_ms(struct device *kdev, struct device_attribute *attr, char *buf)
65{ 65{
66 struct drm_minor *dminor = container_of(dev, struct drm_minor, kdev); 66 struct drm_minor *dminor = container_of(kdev, struct drm_minor, kdev);
67 u32 rc6p_residency = calc_residency(dminor->dev, GEN6_GT_GFX_RC6p); 67 u32 rc6p_residency = calc_residency(dminor->dev, GEN6_GT_GFX_RC6p);
68 return snprintf(buf, PAGE_SIZE, "%u", rc6p_residency); 68 return snprintf(buf, PAGE_SIZE, "%u", rc6p_residency);
69} 69}
70 70
71static ssize_t 71static ssize_t
72show_rc6pp_ms(struct device *dev, struct device_attribute *attr, char *buf) 72show_rc6pp_ms(struct device *kdev, struct device_attribute *attr, char *buf)
73{ 73{
74 struct drm_minor *dminor = container_of(dev, struct drm_minor, kdev); 74 struct drm_minor *dminor = container_of(kdev, struct drm_minor, kdev);
75 u32 rc6pp_residency = calc_residency(dminor->dev, GEN6_GT_GFX_RC6pp); 75 u32 rc6pp_residency = calc_residency(dminor->dev, GEN6_GT_GFX_RC6pp);
76 return snprintf(buf, PAGE_SIZE, "%u", rc6pp_residency); 76 return snprintf(buf, PAGE_SIZE, "%u", rc6pp_residency);
77} 77}