mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
drm/i2c/tda998x: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221118224540.619276-42-uwe@kleine-koenig.org
This commit is contained in:
parent
1cff174aa1
commit
3072599526
1 changed files with 2 additions and 2 deletions
|
@ -2057,7 +2057,7 @@ static const struct component_ops tda998x_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
tda998x_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
tda998x_probe(struct i2c_client *client)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -2097,7 +2097,7 @@ static const struct i2c_device_id tda998x_ids[] = {
|
||||||
MODULE_DEVICE_TABLE(i2c, tda998x_ids);
|
MODULE_DEVICE_TABLE(i2c, tda998x_ids);
|
||||||
|
|
||||||
static struct i2c_driver tda998x_driver = {
|
static struct i2c_driver tda998x_driver = {
|
||||||
.probe = tda998x_probe,
|
.probe_new = tda998x_probe,
|
||||||
.remove = tda998x_remove,
|
.remove = tda998x_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "tda998x",
|
.name = "tda998x",
|
||||||
|
|
Loading…
Reference in a new issue