diff options
author | Stephen Kitt <[email protected]> | 2022-04-15 18:06:12 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-04-25 13:58:56 +0100 |
commit | 988e6870c86cce7999f55133197fddfe7e2795d2 (patch) | |
tree | a297ca3512e82b14ec94c603cd7a46ce58ad6f62 /lib/mpi/mpi-sub-ui.c | |
parent | 55116b39e5e1c2d0fd1a77e9f46ce8437623e0e8 (diff) |
ASoC: tlv320*: use i2c_match_id and simple i2c probe
As part of the ongoing i2c transition to the simple probe
("probe_new"), this patch uses i2c_match_id to retrieve the
driver_data for the probed device. The id parameter is thus no longer
necessary and the simple probe can be used instead.
In the context of an i2c probe, i2c_match_id with the module id table
and the probed client never returns null, so removing the null check
on the i2c_device_id pointer is safe.
The i2c id tables are moved up before the probe function, as
suggested by Wolfram Sang, except where the existing code already had
a declaration for the of_device_id table.
Signed-off-by: Stephen Kitt <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions