OSDN Git Service

media: i2c: adv7842: convert to i2c_new_dummy_device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 9 Aug 2019 19:04:06 +0000 (16:04 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 13 Aug 2019 14:46:55 +0000 (11:46 -0300)
commit34925d9f019ca5f2bbb2220bfd7bf353c61d8a27
tree42ddc50c5cd978ed829667f2646a9d5bdb4be875
parent2f822f1da08ac5c93e351e79d22920f08fa51baf
media: i2c: adv7842: convert to i2c_new_dummy_device

Move away from the to-be-removed i2c_new_dummy() to
i2c_new_dummy_device(). So, we now get an ERRPTR which we use in error
handling by printing the error code. To keep the rest of the driver
logic as is, internally a NULL ptr is still kept.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/adv7842.c