aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_sysfs.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2013-02-14 03:42:11 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-02-19 19:33:44 -0500
commit3e2a155606a0dbe647b87423665fb691941c2fe0 (patch)
tree2b73a8944792fd50c9715ff3231861ecc2636055 /drivers/gpu/drm/i915/i915_sysfs.c
parent96a02917a0131e52efefde49c2784c0421d6c439 (diff)
drm/i915: add \n to the end of sysfs attributes
It is customary to end sysfs attributes with a newline. Signed-off-by: Jani Nikula <jani.nikula@intel.com> 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 9462081b1e60..a3a3e22f1a84 100644
--- a/drivers/gpu/drm/i915/i915_sysfs.c
+++ b/drivers/gpu/drm/i915/i915_sysfs.c
@@ -49,7 +49,7 @@ static ssize_t
49show_rc6_mask(struct device *kdev, 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(kdev, 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\n", intel_enable_rc6(dminor->dev));
53} 53}
54 54
55static ssize_t 55static ssize_t
@@ -57,7 +57,7 @@ show_rc6_ms(struct device *kdev, struct device_attribute *attr, char *buf)
57{ 57{
58 struct drm_minor *dminor = container_of(kdev, 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\n", rc6_residency);
61} 61}
62 62
63static ssize_t 63static ssize_t
@@ -65,7 +65,7 @@ show_rc6p_ms(struct device *kdev, struct device_attribute *attr, char *buf)
65{ 65{
66 struct drm_minor *dminor = container_of(kdev, 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\n", rc6p_residency);
69} 69}
70 70
71static ssize_t 71static ssize_t
@@ -73,7 +73,7 @@ show_rc6pp_ms(struct device *kdev, struct device_attribute *attr, char *buf)
73{ 73{
74 struct drm_minor *dminor = container_of(kdev, 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\n", rc6pp_residency);
77} 77}
78 78
79static DEVICE_ATTR(rc6_enable, S_IRUGO, show_rc6_mask, NULL); 79static DEVICE_ATTR(rc6_enable, S_IRUGO, show_rc6_mask, NULL);
@@ -215,7 +215,7 @@ static ssize_t gt_cur_freq_mhz_show(struct device *kdev,
215 ret = dev_priv->rps.cur_delay * GT_FREQUENCY_MULTIPLIER; 215 ret = dev_priv->rps.cur_delay * GT_FREQUENCY_MULTIPLIER;
216 mutex_unlock(&dev_priv->rps.hw_lock); 216 mutex_unlock(&dev_priv->rps.hw_lock);
217 217
218 return snprintf(buf, PAGE_SIZE, "%d", ret); 218 return snprintf(buf, PAGE_SIZE, "%d\n", ret);
219} 219}
220 220
221static ssize_t gt_max_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf) 221static ssize_t gt_max_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf)
@@ -229,7 +229,7 @@ static ssize_t gt_max_freq_mhz_show(struct device *kdev, struct device_attribute
229 ret = dev_priv->rps.max_delay * GT_FREQUENCY_MULTIPLIER; 229 ret = dev_priv->rps.max_delay * GT_FREQUENCY_MULTIPLIER;
230 mutex_unlock(&dev_priv->rps.hw_lock); 230 mutex_unlock(&dev_priv->rps.hw_lock);
231 231
232 return snprintf(buf, PAGE_SIZE, "%d", ret); 232 return snprintf(buf, PAGE_SIZE, "%d\n", ret);
233} 233}
234 234
235static ssize_t gt_max_freq_mhz_store(struct device *kdev, 235static ssize_t gt_max_freq_mhz_store(struct device *kdev,
@@ -280,7 +280,7 @@ static ssize_t gt_min_freq_mhz_show(struct device *kdev, struct device_attribute
280 ret = dev_priv->rps.min_delay * GT_FREQUENCY_MULTIPLIER; 280 ret = dev_priv->rps.min_delay * GT_FREQUENCY_MULTIPLIER;
281 mutex_unlock(&dev_priv->rps.hw_lock); 281 mutex_unlock(&dev_priv->rps.hw_lock);
282 282
283 return snprintf(buf, PAGE_SIZE, "%d", ret); 283 return snprintf(buf, PAGE_SIZE, "%d\n", ret);
284} 284}
285 285
286static ssize_t gt_min_freq_mhz_store(struct device *kdev, 286static ssize_t gt_min_freq_mhz_store(struct device *kdev,
@@ -355,7 +355,7 @@ static ssize_t gt_rp_mhz_show(struct device *kdev, struct device_attribute *attr
355 } else { 355 } else {
356 BUG(); 356 BUG();
357 } 357 }
358 return snprintf(buf, PAGE_SIZE, "%d", val); 358 return snprintf(buf, PAGE_SIZE, "%d\n", val);
359} 359}
360 360
361static const struct attribute *gen6_attrs[] = { 361static const struct attribute *gen6_attrs[] = {