]> git.baikalelectronics.ru Git - kernel.git/commit
media: pci: ivtv: convert to i2c_new_scanned_device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 16 Dec 2019 12:29:45 +0000 (13:29 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 8 Jan 2020 13:33:04 +0000 (14:33 +0100)
commit8107e7c7020be258038e5719c7903330179e9815
tree048789fbba400c8db1571ed2a718fc60999bce86
parent0c1eaa15b688dc91b8c8049bdaa410cf1b5eb8e9
media: pci: ivtv: convert to i2c_new_scanned_device

Move from the deprecated i2c_new_probed_device() to the new
i2c_new_scanned_device(). Make use of the new ERRPTR if suitable. Change
the legacy function to simply return void because the retval was never
used anywhere.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/ivtv/ivtv-i2c.c
drivers/media/pci/ivtv/ivtv-i2c.h