iio: maxim_thermocouple: Set parent device
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 11 Feb 2017 12:34:21 +0000 (13:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Feb 2017 12:03:33 +0000 (12:03 +0000)
commit74e2419b00d870b373ada4878e3d66d8dc97f4b0
treec324c3a2eb523319c5994b0721f1d4012eb5dc3b
parentb2027d16df9194ec22eb5d315776532a7476bdb1
iio: maxim_thermocouple: 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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/temperature/maxim_thermocouple.c