Files
linux-bredos/include/linux
Heiko Stuebner fa52c04dae mfd: core: Make platform_data pointer const in struct mfd_cell
The content of the platform_data of a struct mfd_cell is simply passed on
to the platform_device_add_data() call in mfd_add_device() .

platform_device_add_data() already handles the data behind that pointer
as const and also uses kmemdup to create a copy of the data before
handing that copy over to the newly created platform-device,
so there is no reason to not extend this to struct mfd_cell, as the old
copy in the mfd_cell will be stale anyway.

This allows to pass structs gathered from of_device_get_match_data()
as platform-data to sub-devices - which is retrieved as const already.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20241107114712.538976-3-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>
2024-12-17 13:14:21 +00:00
..
2024-10-22 15:54:11 +02:00
2024-11-22 21:32:25 +01:00
2024-11-11 10:45:03 +01:00
2024-11-11 09:06:45 -07:00
2024-11-07 14:38:07 -08:00
2024-11-05 13:32:21 +01:00
2024-10-22 11:16:56 +02:00
2024-10-19 14:16:45 +02:00
2024-11-09 14:55:33 +01:00
2024-11-24 17:05:27 -08:00
2024-10-16 21:56:59 +02:00
2024-10-30 19:47:20 +01:00
2024-11-05 16:56:26 -08:00
2024-11-05 16:56:26 -08:00
2024-11-16 10:09:30 -06:00
2024-11-05 12:55:38 +01:00
2024-11-03 21:13:21 +01:00
2024-11-05 17:12:31 -08:00
2024-11-30 22:41:35 -05:00
2024-11-11 00:26:44 -08:00
2024-11-06 12:59:44 -05:00
2024-11-18 11:56:21 +00:00
2024-11-06 12:59:44 -05:00