mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] power: supply: Constify static struct attribute_group
@ 2021-01-13 20:32 Rikard Falkeborn
  2021-01-13 20:32 ` [PATCH 1/2] power: supply: ltc4162-l: " Rikard Falkeborn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rikard Falkeborn @ 2021-01-13 20:32 UTC (permalink / raw)
  To: Sebastian Reichel, Mike Looijmans
  Cc: linux-pm, linux-kernel, Rikard Falkeborn

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(-)

-- 
2.30.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-13 21:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13 20:32 [PATCH 0/2] power: supply: Constify static struct attribute_group Rikard Falkeborn
2021-01-13 20:32 ` [PATCH 1/2] power: supply: ltc4162-l: " Rikard Falkeborn
2021-01-13 20:32 ` [PATCH 2/2] power: supply: core: " Rikard Falkeborn
2021-01-13 21:19 ` [PATCH 0/2] power: supply: " Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®