mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
fpga: dfl: fme: Constify static attribute_group structs
The only usage of these is to put their addresses in arrays of pointers to const attribute_groups. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Reviewed-by: Tom Rix <trix@redhat.com> Signed-off-by: Moritz Fischer <mdf@kernel.org>
This commit is contained in:
committed by
Moritz Fischer
parent
f5187329d0
commit
e41d4c0117
@@ -192,7 +192,7 @@ static struct attribute *fme_perf_cpumask_attrs[] = {
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group fme_perf_cpumask_group = {
|
static const struct attribute_group fme_perf_cpumask_group = {
|
||||||
.attrs = fme_perf_cpumask_attrs,
|
.attrs = fme_perf_cpumask_attrs,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -225,7 +225,7 @@ static struct attribute *fme_perf_format_attrs[] = {
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group fme_perf_format_group = {
|
static const struct attribute_group fme_perf_format_group = {
|
||||||
.name = "format",
|
.name = "format",
|
||||||
.attrs = fme_perf_format_attrs,
|
.attrs = fme_perf_format_attrs,
|
||||||
};
|
};
|
||||||
@@ -239,7 +239,7 @@ static struct attribute *fme_perf_events_attrs_empty[] = {
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct attribute_group fme_perf_events_group = {
|
static const struct attribute_group fme_perf_events_group = {
|
||||||
.name = "events",
|
.name = "events",
|
||||||
.attrs = fme_perf_events_attrs_empty,
|
.attrs = fme_perf_events_attrs_empty,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user