diff options
author | Stephen Boyd <[email protected]> | 2021-01-22 19:44:26 -0800 |
---|---|---|
committer | Rob Herring <[email protected]> | 2021-01-26 12:17:32 -0600 |
commit | 9243eadc3a13c1332a80a8254e48865b09df5339 (patch) | |
tree | f5b61e0996da4513e72212a77030b2c107b979f1 /net/switchdev/switchdev.c | |
parent | d825f0bea20f49a8f413a6acd7c4100ea55edf6d (diff) |
usb: usb251xb: Use of_device_get_match_data()
Use the more modern API here instead of using of_match_device() and
avoid casting away const from the returned pointer by pushing the const
type through to the users. This nicely avoids referencing the match
table when it is undefined with configurations where CONFIG_OF=n and
avoids 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: Richard Leitner <[email protected]>
Cc: Greg Kroah-Hartman <[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