diff options
| author | Andy Shevchenko <[email protected]> | 2022-10-04 12:21:25 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-10-22 13:42:04 +0200 |
| commit | b295d484b97081feba72b071ffcb72fb4638ccfd (patch) | |
| tree | e3e71a32739c4ab13674a7373235d84ba58e0002 /tools/perf/scripts/python/flamegraph.py | |
| parent | 3d24903a6dd27ab817b4c6c24bee245ff06f7c8e (diff) | |
device property: Allow const parameter to dev_fwnode()
It's not fully correct to take a const parameter pointer to a struct
and return a non-const pointer to a member of that struct.
Instead, introduce a const version of the dev_fwnode() API which takes
and returns const pointers and use it where it's applicable.
With this, convert dev_fwnode() to be a macro wrapper on top of const
and non-const APIs that chooses one based on the type.
Suggested-by: Sakari Ailus <[email protected]>
Fixes: aade55c86033 ("device property: Add const qualifier to device_get_match_data() parameter")
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Reviewed-by: Sakari Ailus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions