aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-10-26 14:54:17 -0500
committerThierry Reding <thierry.reding@gmail.com>2023-12-20 16:04:13 +0100
commit7ee2273197f1c1755ebdad8716eab50689401aff (patch)
tree2696d9b2304d1d84ee12ffd21f3a644ed24e980e /drivers/pwm/pwm-stm32.c
parentb0445a18d3eef36b7dc4e07a0ccb4f7178251942 (diff)
downloadlinux-7ee2273197f1c1755ebdad8716eab50689401aff.tar.gz
linux-7ee2273197f1c1755ebdad8716eab50689401aff.tar.bz2
linux-7ee2273197f1c1755ebdad8716eab50689401aff.zip
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 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions