diff options
| author | Greg Kroah-Hartman <[email protected]> | 2023-01-11 12:30:11 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-01-27 13:45:42 +0100 |
| commit | 2f89e23bc03e31b8e6f4994cdd954c0a7e35ca4a (patch) | |
| tree | 2f124eb6acf1eeb270979535a7228e32c9fec60e /include/linux | |
| parent | b84d6d3b4580ad1551ada9046fbed85f3b1373af (diff) | |
platform/x86: wmi: move dev_to_wblock() and dev_to_wdev to use container_of_const()
The driver core is changing to pass some pointers as const, so move the
dev_to_wdev() and dev_to_wblock() functions to use container_of_const()
to handle this change.
Both of these functions now properly keep the const-ness of the pointer
passed into it, while as before it could be lost.
Cc: Hans de Goede <[email protected]>
Cc: Mark Gross <[email protected]>
Acked-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions