Stephen Kitt 4ac8ebb6cc
ASoC: max980*: 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.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Link: https://lore.kernel.org/r/20220415160613.148882-4-steve@sk2.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-04-25 13:58:53 +01:00
..
2021-04-20 17:25:51 +01:00
2022-04-05 10:29:12 +01:00
2022-03-21 16:19:21 +01:00
2021-03-31 18:00:38 +01:00
2022-03-21 16:19:21 +01:00
2022-04-06 23:37:58 +01:00
2022-03-21 16:19:21 +01:00
2022-03-21 16:19:21 +01:00
2022-04-06 23:37:58 +01:00
2018-04-26 12:44:15 +01:00
2021-10-02 01:31:58 +01:00
2019-06-12 13:52:26 +01:00
2020-05-07 13:18:04 +01:00
2019-07-26 13:10:09 +01:00
2022-01-28 15:59:20 +00:00
2021-12-06 10:04:05 +01:00
2022-03-21 16:19:21 +01:00
2021-12-06 10:04:05 +01:00
2018-06-01 12:05:30 +01:00
2022-03-28 12:41:28 -07:00
2020-07-20 15:34:29 +01:00
2020-10-02 21:05:29 +01:00
2022-03-21 16:19:21 +01:00