iio: pulsedlight-lidar-lite-v2: Set parent device
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 11 Feb 2017 12:34:20 +0000 (13:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Feb 2017 12:02:31 +0000 (12:02 +0000)
commitb2027d16df9194ec22eb5d315776532a7476bdb1
tree9a06d02f1112ef7103d3d21c1c959dd49b53add8
parente78c1f5710bc1a394d17850a50de0429aa5e2938
iio: pulsedlight-lidar-lite-v2: Set parent device

Initialize the parent of the IIO device to the device that registered it.
This makes sure that the IIO device appears the right level in the device
hierarchy.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c