Skip to content

power: supply: Constify static struct attribute_group

Rikard Falkeborn linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2power: supply: ltc4162-l: Constify static struct attribute_groupdrivers/power/supply/ltc4162-l-charger.c+1 -10 replies
2/2power: supply: core: Constify static struct attribute_groupdrivers/power/supply/power_supply_sysfs.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] power: supply: Constify static struct attribute_group

Constify two static struct attribute_group. The only place they are used is to put their address in an array of pointers to const struct attribute_group. With these patches applied, all static attribute_group structs in drivers/power are const.

Rikard Falkeborn (2):
power: supply: ltc4162-l: Constify static struct attribute_group
power: supply: core: Constify static struct attribute_group

 drivers/power/supply/ltc4162-l-charger.c  | 2 +-
 drivers/power/supply/power_supply_sysfs.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.30.0