iio: light apds9960: Add the missing dev.parent
authorYong Li <sdliyong@gmail.com>
Thu, 5 May 2016 08:10:49 +0000 (16:10 +0800)
committerJonathan Cameron <jic23@kernel.org>
Fri, 3 Jun 2016 11:54:51 +0000 (12:54 +0100)
commit590b92a30242dd3f73de3d9a51d9924f1ab33e93
treefb90c1dfb51c3dc4f73450ab53b6986f2d6b64a0
parent99543823357966ac938d9a310947e731b67338e6
iio: light apds9960: Add the missing dev.parent

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>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/apds9960.c