iio: quad-8: Set parent device
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 11 Feb 2017 12:34:15 +0000 (13:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Feb 2017 11:57:16 +0000 (11:57 +0000)
commited165e91719b2c99336786d721d8ae30700c62cb
tree1a70e2d71d3a93f3e499e7916934aea9150141d9
parentc5c7d1f34c333d0a14f1f80d3d46eed4f338211e
iio: quad-8: 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>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/counter/104-quad-8.c