Commit e1215de8 authored by Jani Nikula's avatar Jani Nikula

drm/i915/sysfs: make attrs arrays const

They don't need to be modified.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Reviewed-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181004143750.30880-2-jani.nikula@intel.com
parent 9ee4685c
...@@ -483,7 +483,7 @@ static ssize_t gt_rp_mhz_show(struct device *kdev, struct device_attribute *attr ...@@ -483,7 +483,7 @@ static ssize_t gt_rp_mhz_show(struct device *kdev, struct device_attribute *attr
return snprintf(buf, PAGE_SIZE, "%d\n", val); return snprintf(buf, PAGE_SIZE, "%d\n", val);
} }
static const struct attribute *gen6_attrs[] = { static const struct attribute * const gen6_attrs[] = {
&dev_attr_gt_act_freq_mhz.attr, &dev_attr_gt_act_freq_mhz.attr,
&dev_attr_gt_cur_freq_mhz.attr, &dev_attr_gt_cur_freq_mhz.attr,
&dev_attr_gt_boost_freq_mhz.attr, &dev_attr_gt_boost_freq_mhz.attr,
...@@ -495,7 +495,7 @@ static const struct attribute *gen6_attrs[] = { ...@@ -495,7 +495,7 @@ static const struct attribute *gen6_attrs[] = {
NULL, NULL,
}; };
static const struct attribute *vlv_attrs[] = { static const struct attribute * const vlv_attrs[] = {
&dev_attr_gt_act_freq_mhz.attr, &dev_attr_gt_act_freq_mhz.attr,
&dev_attr_gt_cur_freq_mhz.attr, &dev_attr_gt_cur_freq_mhz.attr,
&dev_attr_gt_boost_freq_mhz.attr, &dev_attr_gt_boost_freq_mhz.attr,
......
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