[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87muazjewd.fsf@dell.be.48ers.dk>
Date: Tue, 07 Jan 2020 19:32:50 +0100
From: Peter Korsgaard <peter@...sgaard.com>
To: Wolfram Sang <wsa+renesas@...g-engineering.com>
Cc: linux-i2c@...r.kernel.org, Andrew Lunn <andrew@...n.ch>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 04/12] i2c: ocores: convert to use i2c_new_client_device()
>>>>> "Wolfram" == Wolfram Sang <wsa+renesas@...g-engineering.com> writes:
> Move away from the deprecated API and return the shiny new ERRPTR where
> useful.
> Signed-off-by: Wolfram Sang <wsa+renesas@...g-engineering.com>
I didn't follow the discussion, but I don't see any returns anywhere?
> ---
> Build tested only.
> drivers/i2c/busses/i2c-ocores.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
> index ca8b3ecfa93d..f5fc75b65a19 100644
> --- a/drivers/i2c/busses/i2c-ocores.c
> +++ b/drivers/i2c/busses/i2c-ocores.c
> @@ -731,7 +731,7 @@ static int ocores_i2c_probe(struct platform_device *pdev)
> /* add in known devices to the bus */
> if (pdata) {
> for (i = 0; i < pdata->num_devices; i++)
> - i2c_new_device(&i2c->adap, pdata->devices + i);
> + i2c_new_client_device(&i2c->adap, pdata->devices + i);
> }
> return 0;
> --
> 2.20.1
--
Bye, Peter Korsgaard
Powered by blists - more mailing lists