Skip to content
Commit 11b93281 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Rob Herring
Browse files

of: unittest: Convert to i2c's .probe_new()



In struct i2c_driver, field new_probe replaces the soon to be deprecated
field probe.  Update unittest for this change. The probe function
doesn't make use of the i2c_device_id * parameter so it can be trivially
converted.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarFrank Rowand <frowand.list@gmail.com>
Link: https://lore.kernel.org/r/20221118224540.619276-510-uwe@kleine-koenig.org


[robh: Add Frank's commit msg addition]
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 3c75ce7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment