diff options
| author | Maximilian Luz <[email protected]> | 2023-05-25 20:50:41 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2023-05-30 09:20:02 +0000 |
| commit | ed08d937eaa4f18aa26e47fe6b937205a4745045 (patch) | |
| tree | 4f709f10e9f6d54588e5d692a9e7729556361711 /drivers/platform/surface/aggregator/controller.c | |
| parent | platform/x86/intel/ifs: Annotate work queue on stack so object debug does not... (diff) | |
| download | kernel-ed08d937eaa4f18aa26e47fe6b937205a4745045.tar.gz kernel-ed08d937eaa4f18aa26e47fe6b937205a4745045.zip | |
platform/surface: aggregator: Make to_ssam_device_driver() respect constness
Make to_ssam_device_driver() a bit safer by replacing container_of()
with container_of_const() to respect the constness of the passed in
pointer, instead of silently discarding any const specifications. This
change also makes it more similar to to_ssam_device(), which already
uses container_of_const().
Signed-off-by: Maximilian Luz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions
