* [PATCH] i2c: dln2: set the device tree node of the adapter
@ 2015-03-27 15:37 Octavian Purdila
2015-03-27 15:57 ` Wolfram Sang
2015-03-30 7:09 ` Lee Jones
0 siblings, 2 replies; 4+ messages in thread
From: Octavian Purdila @ 2015-03-27 15:37 UTC (permalink / raw)
To: wsa; +Cc: lee.jones, laurentiu.palcu, linux-i2c, linux-kernel,
Octavian Purdila
This patch makes sure the platform device tree node is inherited by
the adapter device. This allows the DLN2 bus to work with i2c devices
defined in the device tree.
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
---
drivers/i2c/busses/i2c-dln2.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/busses/i2c-dln2.c b/drivers/i2c/busses/i2c-dln2.c
index b3fb86a..db1e20a 100644
--- a/drivers/i2c/busses/i2c-dln2.c
+++ b/drivers/i2c/busses/i2c-dln2.c
@@ -210,6 +210,7 @@ static int dln2_i2c_probe(struct platform_device *pdev)
dln2->adapter.class = I2C_CLASS_HWMON;
dln2->adapter.algo = &dln2_i2c_usb_algorithm;
dln2->adapter.dev.parent = dev;
+ dln2->adapter.dev.of_node = dev->of_node;
i2c_set_adapdata(&dln2->adapter, dln2);
snprintf(dln2->adapter.name, sizeof(dln2->adapter.name), "%s-%s-%d",
"dln2-i2c", dev_name(pdev->dev.parent), dln2->port);
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: dln2: set the device tree node of the adapter
2015-03-27 15:37 [PATCH] i2c: dln2: set the device tree node of the adapter Octavian Purdila
@ 2015-03-27 15:57 ` Wolfram Sang
2015-03-30 7:09 ` Lee Jones
2015-03-30 7:09 ` Lee Jones
1 sibling, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2015-03-27 15:57 UTC (permalink / raw)
To: Octavian Purdila; +Cc: lee.jones, laurentiu.palcu, linux-i2c, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 344 bytes --]
On Fri, Mar 27, 2015 at 05:37:10PM +0200, Octavian Purdila wrote:
> This patch makes sure the platform device tree node is inherited by
> the adapter device. This allows the DLN2 bus to work with i2c devices
> defined in the device tree.
>
> Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Applied to for-next, thanks!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: dln2: set the device tree node of the adapter
2015-03-27 15:37 [PATCH] i2c: dln2: set the device tree node of the adapter Octavian Purdila
2015-03-27 15:57 ` Wolfram Sang
@ 2015-03-30 7:09 ` Lee Jones
1 sibling, 0 replies; 4+ messages in thread
From: Lee Jones @ 2015-03-30 7:09 UTC (permalink / raw)
To: Octavian Purdila; +Cc: wsa, laurentiu.palcu, linux-i2c, linux-kernel
On Fri, 27 Mar 2015, Octavian Purdila wrote:
> This patch makes sure the platform device tree node is inherited by
> the adapter device. This allows the DLN2 bus to work with i2c devices
> defined in the device tree.
>
> Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
> ---
> drivers/i2c/busses/i2c-dln2.c | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Lee Jones <lee.jones@linaro.org>
> diff --git a/drivers/i2c/busses/i2c-dln2.c b/drivers/i2c/busses/i2c-dln2.c
> index b3fb86a..db1e20a 100644
> --- a/drivers/i2c/busses/i2c-dln2.c
> +++ b/drivers/i2c/busses/i2c-dln2.c
> @@ -210,6 +210,7 @@ static int dln2_i2c_probe(struct platform_device *pdev)
> dln2->adapter.class = I2C_CLASS_HWMON;
> dln2->adapter.algo = &dln2_i2c_usb_algorithm;
> dln2->adapter.dev.parent = dev;
> + dln2->adapter.dev.of_node = dev->of_node;
> i2c_set_adapdata(&dln2->adapter, dln2);
> snprintf(dln2->adapter.name, sizeof(dln2->adapter.name), "%s-%s-%d",
> "dln2-i2c", dev_name(pdev->dev.parent), dln2->port);
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: dln2: set the device tree node of the adapter
2015-03-27 15:57 ` Wolfram Sang
@ 2015-03-30 7:09 ` Lee Jones
0 siblings, 0 replies; 4+ messages in thread
From: Lee Jones @ 2015-03-30 7:09 UTC (permalink / raw)
To: Wolfram Sang; +Cc: Octavian Purdila, laurentiu.palcu, linux-i2c, linux-kernel
On Fri, 27 Mar 2015, Wolfram Sang wrote:
> On Fri, Mar 27, 2015 at 05:37:10PM +0200, Octavian Purdila wrote:
> > This patch makes sure the platform device tree node is inherited by
> > the adapter device. This allows the DLN2 bus to work with i2c devices
> > defined in the device tree.
> >
> > Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
>
> Applied to for-next, thanks!
Ah sorry. I read this _after_ sending my Ack.
Feel free to apply it, or not.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-30 7:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-27 15:37 [PATCH] i2c: dln2: set the device tree node of the adapter Octavian Purdila
2015-03-27 15:57 ` Wolfram Sang
2015-03-30 7:09 ` Lee Jones
2015-03-30 7:09 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox