WSL2-Linux-Kernel/drivers/staging/fieldbus
Rikard Falkeborn 56fb37efca 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>
2021-02-08 15:22:34 +01:00
..
Documentation dt-bindings: anybus-controller: move to staging/ tree 2019-09-12 10:35:51 +01:00
anybuss staging: fieldbus: arcx-anybus: constify static structs 2021-02-08 15:22:34 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile staging: fieldbus: anybus-s: support the Arcx anybus controller 2019-04-17 12:07:31 +02:00
TODO staging: fieldbus: add TODO 2019-04-17 12:07:31 +02:00
dev_core.c staging: fieldbus: use kobj_to_dev() to get device 2020-11-23 17:59:51 +01:00
fieldbus_dev.h staging: fieldbus: move "offline mode" definition to fieldbus core 2019-09-30 21:58:03 +02:00