iio: light apds9960: Add the missing dev.parent
authorYong Li <sdliyong@gmail.com>
Thu, 5 May 2016 08:10:49 +0000 (16:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 16:47:36 +0000 (09:47 -0700)
commitc3aeba867d5fca069cf779a6ee487f50dd4d17ee
treef65fca5dec107ee60fd350b37bbba2281b334180
parent923f209551914c4906fb78f4174470132ccf0947
iio: light apds9960: Add the missing dev.parent

commit 590b92a30242dd3f73de3d9a51d9924f1ab33e93 upstream.

Without this, the iio:deviceX is missing in the /sys/bus/i2c/devices/0-0039
Some userspace tools use this path to identify a specific instance of the
device.

Signed-off-by: Yong Li <sdliyong@gmail.com>
Reviewed-By: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/apds9960.c