[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150330070910.GD457@x1>
Date: Mon, 30 Mar 2015 08:09:10 +0100
From: Lee Jones <lee.jones@...aro.org>
To: Octavian Purdila <octavian.purdila@...el.com>
Cc: wsa@...-dreams.de, laurentiu.palcu@...el.com,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i2c: dln2: set the device tree node of the adapter
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@...el.com>
> ---
> drivers/i2c/busses/i2c-dln2.c | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Lee Jones <lee.jones@...aro.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists