diff options
| author | Rob Herring <robh@kernel.org> | 2023-10-26 22:54:17 +0300 |
|---|---|---|
| committer | Thierry Reding <thierry.reding@gmail.com> | 2023-12-20 18:04:13 +0300 |
| commit | 7ee2273197f1c1755ebdad8716eab50689401aff (patch) | |
| tree | 2696d9b2304d1d84ee12ffd21f3a644ed24e980e /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | b0445a18d3eef36b7dc4e07a0ccb4f7178251942 (diff) | |
| download | linux-7ee2273197f1c1755ebdad8716eab50689401aff.tar.xz | |
pwm: Use device_get_match_data()
Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data. With this, adjust the includes to explicitly
include the correct headers.
As these drivers only do DT based matching, of_match_device() will never
return NULL if we've gotten to probe(). Therefore, the NULL check and
error returns can be dropped.
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
