iio: max30102: Set parent device
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 11 Feb 2017 12:34:18 +0000 (13:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Feb 2017 12:00:16 +0000 (12:00 +0000)
commitfa722499bbf89b5976bdfc77139f7d623a69a18a
treec9b2cb9a4e7d4839f1a500b33c2c507c300326a0
parent5d548b733eb4b5cfb03e1acbcbfafca97455132c
iio: max30102: 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/health/max30102.c