]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: core: allow to constify property lists
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Fri, 3 Apr 2020 20:20:32 +0000 (22:20 +0200)
committerSebastian Reichel <sre@kernel.org>
Fri, 1 May 2020 13:43:04 +0000 (15:43 +0200)
commitfdda3ba1e1f8b735fd44cab862e1d2c37ed1da9e
tree25b861701b4e765d2b8e45c68697f70b7f7aca41
parent51d1fc0a277413c7f81b2bd9d8035f06bac09af5
power: supply: core: allow to constify property lists

Since tables pointed to by power_supply_desc->properties and
->usb_types are not expected to change after registration, mark
the pointers accordingly

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
include/linux/power_supply.h