From: Viresh Kumar <viresh.kumar@linaro.org> To: Wolfram Sang <wsa@kernel.org>, Jie Deng <jie.deng@intel.com>, Viresh Kumar <viresh.kumar@linaro.org> Cc: Vincent Guittot <vincent.guittot@linaro.org>, arnd@kernel.org, linux-i2c@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] i2c: virtio: Update i2c-adapter's of_node Date: Wed, 18 Aug 2021 09:05:50 +0530 [thread overview] Message-ID: <376bd0a3a34e8f0de297103dd2f711bb236a8615.1629257677.git.viresh.kumar@linaro.org> (raw) Set of-node of the adapter to the virtio device's of-node to enable automatic parsing the of the I2C devices, if present in the DT. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/i2c/busses/i2c-virtio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-virtio.c b/drivers/i2c/busses/i2c-virtio.c index d3e60d9cde10..2dde69cfb9aa 100644 --- a/drivers/i2c/busses/i2c-virtio.c +++ b/drivers/i2c/busses/i2c-virtio.c @@ -228,6 +228,7 @@ static int virtio_i2c_probe(struct virtio_device *vdev) vi->adap.algo = &virtio_algorithm; vi->adap.quirks = &virtio_i2c_quirks; vi->adap.dev.parent = &vdev->dev; + vi->adap.dev.of_node = vdev->dev.of_node; i2c_set_adapdata(&vi->adap, vi); /* -- 2.31.1.272.g89b43f80a514
WARNING: multiple messages have this Message-ID (diff)
From: Viresh Kumar <viresh.kumar@linaro.org> To: Wolfram Sang <wsa@kernel.org>, Jie Deng <jie.deng@intel.com>, Viresh Kumar <viresh.kumar@linaro.org> Cc: arnd@kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: [PATCH] i2c: virtio: Update i2c-adapter's of_node Date: Wed, 18 Aug 2021 09:05:50 +0530 [thread overview] Message-ID: <376bd0a3a34e8f0de297103dd2f711bb236a8615.1629257677.git.viresh.kumar@linaro.org> (raw) Set of-node of the adapter to the virtio device's of-node to enable automatic parsing the of the I2C devices, if present in the DT. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/i2c/busses/i2c-virtio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-virtio.c b/drivers/i2c/busses/i2c-virtio.c index d3e60d9cde10..2dde69cfb9aa 100644 --- a/drivers/i2c/busses/i2c-virtio.c +++ b/drivers/i2c/busses/i2c-virtio.c @@ -228,6 +228,7 @@ static int virtio_i2c_probe(struct virtio_device *vdev) vi->adap.algo = &virtio_algorithm; vi->adap.quirks = &virtio_i2c_quirks; vi->adap.dev.parent = &vdev->dev; + vi->adap.dev.of_node = vdev->dev.of_node; i2c_set_adapdata(&vi->adap, vi); /* -- 2.31.1.272.g89b43f80a514 _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
next reply other threads:[~2021-08-18 3:36 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-18 3:35 Viresh Kumar [this message] 2021-08-18 3:35 ` [PATCH] i2c: virtio: Update i2c-adapter's of_node Viresh Kumar 2021-08-19 17:24 ` Wolfram Sang
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=376bd0a3a34e8f0de297103dd2f711bb236a8615.1629257677.git.viresh.kumar@linaro.org \ --to=viresh.kumar@linaro.org \ --cc=arnd@kernel.org \ --cc=jie.deng@intel.com \ --cc=linux-i2c@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=vincent.guittot@linaro.org \ --cc=virtualization@lists.linux-foundation.org \ --cc=wsa@kernel.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.