iio: lmp91000: Set parent device
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 11 Feb 2017 12:34:19 +0000 (13:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Feb 2017 12:01:52 +0000 (12:01 +0000)
commite78c1f5710bc1a394d17850a50de0429aa5e2938
tree4f3c42ecd531380695c90c4a2e480dc61617fe80
parentfa722499bbf89b5976bdfc77139f7d623a69a18a
iio: lmp91000: 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/potentiostat/lmp91000.c