aboutsummaryrefslogtreecommitdiff
path: root/mm/mlock.c
diff options
context:
space:
mode:
authorStephen Kitt <steve@sk2.org>2022-04-15 18:06:09 +0200
committerMark Brown <broonie@kernel.org>2022-04-25 13:58:53 +0100
commit4ac8ebb6cc28cbd99e10d7a4772be1c4da5af130 (patch)
tree39bef02e023ad22355b5a38694ee46de4f1e392f /mm/mlock.c
parent9d8f2edd3d7d11c9f1fc978e36219b3178af13bc (diff)
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>
Diffstat (limited to 'mm/mlock.c')
0 files changed, 0 insertions, 0 deletions