diff options
author | 2021-02-07 21:25:01 +0100 | |
---|---|---|
committer | 2021-02-08 15:22:34 +0100 | |
commit | 56fb37efcae9ead8077fe9657bbd1ae2d374ac50 (patch) | |
tree | 9e69284764a8f5357baff242dd8fb704eedc4991 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: emxx_udc: Make incorrectly defined global static (diff) | |
download | wireguard-linux-56fb37efcae9ead8077fe9657bbd1ae2d374ac50.tar.xz wireguard-linux-56fb37efcae9ead8077fe9657bbd1ae2d374ac50.zip |
staging: fieldbus: arcx-anybus: constify static structs
Constify two static structs which are never modified, to allow the
compiler to put them in read-only memory.
The only usage of controller_attribute_group is to put its address in an
array of pointers to const struct attribute_group, and the only usage of
can_power_ops is to assign its address to the 'ops' field in the
regulator_desc struct, which is a pointer to const struct regulator_ops.
Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210207202501.9494-1-rikard.falkeborn@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions