mbox series

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

Message ID 20210113203243.20146-1-rikard.falkeborn@gmail.com (mailing list archive)
Headers show
Series power: supply: Constify static struct attribute_group | expand

Message

Rikard Falkeborn Jan. 13, 2021, 8:32 p.m. UTC
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(-)

Comments

Sebastian Reichel Jan. 13, 2021, 9:19 p.m. UTC | #1
Hi,

On Wed, Jan 13, 2021 at 09:32:41PM +0100, Rikard Falkeborn wrote:
> 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.

Thanks, I queued both to power-supply's for-next branch.

-- Sebastian