iio: pressure: hp03: convert to i2c_new_dummy_device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 22 Jul 2019 17:26:13 +0000 (19:26 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jul 2019 21:52:07 +0000 (22:52 +0100)
commitb4a339baf35995cd9443439120de60d4605384b1
treea6f9b7b26852c49bfd302bfc48838a8c97cf5ef3
parent48cfd4ef0d52c1e02152949556492011b2524555
iio: pressure: hp03: convert to i2c_new_dummy_device

Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an
ERRPTR which we use in error handling.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/hp03.c