iio: tsl2772: Use devm_iio_device_register
authorChuhong Yuan <hslester96@gmail.com>
Thu, 1 Aug 2019 07:36:12 +0000 (15:36 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 Aug 2019 15:30:44 +0000 (16:30 +0100)
commit7e7f631c95467bcf01e7bc94ec69df9feaed7751
tree6888c91ec6135d252c2f96dae2dc490300958095
parent338084135aeddb103624a6841972fb8588295cc6
iio: tsl2772: Use devm_iio_device_register

Use devm_iio_device_register, which removes the tsl2772_remove
function.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Brian Masney <masneyb@onstation.org>
Tested-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tsl2772.c