[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <376bd0a3a34e8f0de297103dd2f711bb236a8615.1629257677.git.viresh.kumar@linaro.org>
Date: Wed, 18 Aug 2021 09:05:50 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Wolfram Sang <wsa@...nel.org>, Jie Deng <jie.deng@...el.com>,
Viresh Kumar <viresh.kumar@...aro.org>
Cc: Vincent Guittot <vincent.guittot@...aro.org>, arnd@...nel.org,
linux-i2c@...r.kernel.org,
virtualization@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] i2c: virtio: Update i2c-adapter's of_node
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@...aro.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
Powered by blists - more mailing lists