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)
commit0f9be03452e8dd09188b751c2c6217d051745a2f
tree048789fbba400c8db1571ed2a718fc60999bce86
parentd2d39fe2a25311ce2e49277db687b9e6d3b9e94a
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