aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorStephen Boyd <[email protected]>2021-01-22 19:44:25 -0800
committerRob Herring <[email protected]>2021-01-26 12:17:32 -0600
commitd825f0bea20f49a8f413a6acd7c4100ea55edf6d (patch)
tree249a950f5b0f640a4bbfbd2374f23931f3cdd0e1 /net/switchdev/switchdev.c
parent0e658fdd4b2d6fd8f3b83f27fd075b7b2a1d686d (diff)
serial: stm32: Use of_device_get_match_data()
This driver casts away the constness of struct stm32_usart_info that is pointed to by the of match table. Use of_device_get_match_data() instead of of_match_device() here and push the const throughout the code so that we don't cast away const. This nicely avoids referencing the match table when it is undefined with configurations where CONFIG_OF=n and fixes the const issues. Signed-off-by: Stephen Boyd <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: Maxime Coquelin <[email protected]> Cc: Alexandre Torgue <[email protected]> Cc: Rob Herring <[email protected]> Cc: Frank Rowand <[email protected]> Cc: <[email protected]> Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions