diff options
author | Stephen Boyd <[email protected]> | 2019-10-04 14:43:25 -0700 |
---|---|---|
committer | Pavel <[email protected]> | 2019-11-03 17:39:00 +0100 |
commit | 66c41131daba0985464d8eb88092908c023ecb66 (patch) | |
tree | b6f7b1e538d968fdf30106f6236f48601fa64db7 /lib/mpi/mpiutil.c | |
parent | 9cc93be7b0c91a87ef452457c706af62741249d7 (diff) |
leds: pca953x: Use of_device_get_match_data()
This driver can use the of_device_get_match_data() API to simplify the
code. Replace calls to of_match_device() with this newer API under the
assumption that where it is called will be when we know the device is
backed by a DT node. This nicely avoids referencing the match table when
it is undefined with configurations where CONFIG_OF=n.
Cc: Arnd Bergmann <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Riku Voipio <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Frank Rowand <[email protected]>
Cc: Jacek Anaszewski <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Dan Murphy <[email protected]>
Cc: <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Signed-off-by: Pavel Machek <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions