Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit aa2b78c4 authored by Angel Iglesias's avatar Angel Iglesias Committed by Robert Nelson
Browse files

i2c: core: Introduce i2c_client_get_device_id helper function

commit 66223373 upstream

Introduces new helper function to aid in .probe_new() refactors. In order
to use existing i2c_get_device_id() on the probe callback, the device
match table needs to be accessible in that function, which would require
bigger refactors in some drivers using the deprecated .probe callback.

This issue was discussed in more detail in the IIO mailing list.

Link: https://lore.kernel.org/all/20221023132302.911644-11-u.kleine-koenig@pengutronix.de/


Suggested-by: default avatarNuno Sá <noname.nuno@gmail.com>
Suggested-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Suggested-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarAngel Iglesias <ang.iglesiasg@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
[nm@ti.com: Backport from upstream next-20240502]
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent aa778585
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment