diff options
| author | Greg Kroah-Hartman <[email protected]> | 2024-06-11 13:01:09 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-06-13 14:44:00 +0000 |
| commit | c6c631d2b72b9390587cd1ee5b7905f8ea5bb1ea (patch) | |
| tree | 84df0e34cad5497b93faea879244489d3bc1605c /rust/helpers.c | |
| parent | driver core: make driver_detach() take a const * (diff) | |
| download | kernel-c6c631d2b72b9390587cd1ee5b7905f8ea5bb1ea.tar.gz kernel-c6c631d2b72b9390587cd1ee5b7905f8ea5bb1ea.zip | |
driver core: mark async_driver as a const *
Within struct device_private, mark the async_driver * as const as it is
never modified. This requires some internal-to-the-driver-core
functions to also have their parameters marked as constant, and there is
one place where we cast _back_ from the const pointer to a real one, as
the driver core still wants to modify the structure in a number of
remaining places.
Cc: Rafael J. Wysocki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
