iio: cio-dac: Set parent device
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 11 Feb 2017 12:34:16 +0000 (13:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Feb 2017 11:58:19 +0000 (11:58 +0000)
commit83535359c4302cb0f928eb931b7b1bc0a21a66c5
tree08e4006fb024bf55b99ddc7e0d90b5b69e7026a3
parented165e91719b2c99336786d721d8ae30700c62cb
iio: cio-dac: 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/dac/cio-dac.c