[lkml]   [2021]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/3] drivers/mfd: Constify static attribute_group structs
The only usage of the structs is to pass their address to
sysfs_create_group() and sysfs_remove_group(), both which takes pointers
to const attribute_group structs. Make them const to allow the compiler
to put them in read-only memory.

Done with the help of coccinelle.

With these patches applied, all static attribute_group structs in
drivers/mfd are const.

Rikard Falkeborn (3):
mfd: gateworks-gsc: Constify static struct attribute_group
mfd: lm3533: Constify static struct attribute_group
mfd: pcf50633: Constify static struct attribute_group

drivers/mfd/gateworks-gsc.c | 2 +-
drivers/mfd/lm3533-core.c | 2 +-
drivers/mfd/pcf50633-core.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)


 \ /
  Last update: 2021-01-31 15:26    [W:0.046 / U:11.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site