Linux IIO development
 help / color / mirror / Atom feed
From: Yong Li <sdliyong@gmail.com>
To: sdliyong@gmail.com, jic23@kernel.org, knaack.h@gmx.de,
	lars@metafoo.de, pmeerw@pmeerw.net, mranostay@gmail.com,
	fengguang.wu@intel.com, sst@poczta.fm, dan.carpenter@oracle.comn,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] iio: light apds9960: Add the missing dev.parent
Date: Thu,  5 May 2016 16:10:49 +0800	[thread overview]
Message-ID: <1462435849-23364-1-git-send-email-sdliyong@gmail.com> (raw)

Without this, the iio:deviceX is missing in the /sys/bus/i2c/devices/0-0039

Signed-off-by: Yong Li <sdliyong@gmail.com>
---
 drivers/iio/light/apds9960.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c
index 35928fb..f47cc0a 100644
--- a/drivers/iio/light/apds9960.c
+++ b/drivers/iio/light/apds9960.c
@@ -1010,6 +1010,7 @@ static int apds9960_probe(struct i2c_client *client,
 
 	iio_device_attach_buffer(indio_dev, buffer);
 
+	indio_dev->dev.parent = &client->dev;
 	indio_dev->info = &apds9960_info;
 	indio_dev->name = APDS9960_DRV_NAME;
 	indio_dev->channels = apds9960_channels;
-- 
2.5.0


             reply	other threads:[~2016-05-05  8:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-05  8:10 Yong Li [this message]
2016-05-05  8:18 ` [PATCH] iio: light apds9960: Add the missing dev.parent Matt Ranostay
2016-05-14 17:50   ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1462435849-23364-1-git-send-email-sdliyong@gmail.com \
    --to=sdliyong@gmail.com \
    --cc=dan.carpenter@oracle.comn \
    --cc=fengguang.wu@intel.com \
    --cc=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mranostay@gmail.com \
    --cc=pmeerw@pmeerw.net \
    --cc=sst@poczta.fm \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox