Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp598807ybl; Tue, 7 Jan 2020 11:38:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxbJyeeQeB0XFnCaLoA6BjJABAe+nA2fX6B8IyIr0yJEUsWyq8YkemXwz5xQM8fwh0HxnoG X-Received: by 2002:aca:3041:: with SMTP id w62mr859324oiw.147.1578425897062; Tue, 07 Jan 2020 11:38:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578425897; cv=none; d=google.com; s=arc-20160816; b=j1bK5wncSLXE5ie/ttumGlW7/2p22PMnfXgduNNZLwWNj/1WGW86sqGqHV4fYC2wot Bt0d07Sn3NyDCOaKgw5th6Gp9fq50EWs+ANWieQVKiX46Q6E3y/scMwgdGxwsM8FhBbb +8D+tsNw/ckvF6HPh4sZ6wOQGwXxHk5QcciQQ0oGd6lxJU+n+nCzKMb+cl3knqUQwN5F XlAawv/Ck00ryCLtvbC3nRrZoOTdGuu+L8/4X1Ra2J8hnHcf3OaQmzHiUijVMAQDGf7R drrImEueNsqo+OIZ48MfFxRI8199Sku0Vws/NdnQJ+f3YrUsTwXucJuvsDoyBv1Lg7ig LvjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Cbzy/2bT/fLLUdqy1XbXJMyT5+sZqroDJ+qaO7iOoDQ=; b=wAqOwQN4NuAsWtdInMrEQC4/iR6GSo5F5f8M37x5cxIHBI4ju596DWmKdjSPD3qCAC jrEjNbS6ogWQl62wFG4FKr3wszLkWLenpE3qSlH2YngtSqzyo7xcBP7KmMnro/hC88SF XXtG8pg2RXjKG6vX1BgyPHTFsu9Z1ldgTttedmjS/qV6BkNvj3mOzF0hMlqLuTZGCSt1 1kO0vUhmBlGbrGH3YndWMVRElTkpy2+5ON0s+xI5jWb0TOEnscv3MEs4D+G+7mq5dwDo dKBocgHxPftrBagr/xQQYPj/JB1TCWdpgD8CHxR6NHcni22seABN67Rkx46V0hDYKfeI C5Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=5MWuoqtp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m90si393492otc.259.2020.01.07.11.38.02; Tue, 07 Jan 2020 11:38:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=5MWuoqtp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728501AbgAGTgw (ORCPT + 99 others); Tue, 7 Jan 2020 14:36:52 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:51248 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728307AbgAGTgw (ORCPT ); Tue, 7 Jan 2020 14:36:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Cbzy/2bT/fLLUdqy1XbXJMyT5+sZqroDJ+qaO7iOoDQ=; b=5MWuoqtpIMjkxFSxJ2AZ7hyLWY naafxz1L8XCn2B5uye60IPjP7OW46wEIMpB1mIVBcXJz2SJELp1UnaQ6po9lZ9IwnZFMFCEXyxyHM mjsJVjcB5SYgFUknDexOlmWggXFJ0akFS7pHx5JnXWMyEW5XeK1mopga9VCE4SgBAnWc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1iouel-0004bC-7Y; Tue, 07 Jan 2020 20:36:47 +0100 Date: Tue, 7 Jan 2020 20:36:47 +0100 From: Andrew Lunn To: Peter Korsgaard Cc: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/12] i2c: ocores: convert to use i2c_new_client_device() Message-ID: <20200107193647.GA16895@lunn.ch> References: <20200107174748.9616-1-wsa+renesas@sang-engineering.com> <20200107174748.9616-5-wsa+renesas@sang-engineering.com> <87muazjewd.fsf@dell.be.48ers.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87muazjewd.fsf@dell.be.48ers.dk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 07, 2020 at 07:32:50PM +0100, Peter Korsgaard wrote: > >>>>> "Wolfram" == Wolfram Sang writes: > > > Move away from the deprecated API and return the shiny new ERRPTR where > > useful. > > > Signed-off-by: Wolfram Sang > > I didn't follow the discussion, but I don't see any returns anywhere? Hi Peter I have also not been following the discussion. But i2c_new_device() seems to of always returned a NULL pointer on error, and the code has been ignoring it. The 'where useful' comment suggests the return value maybe checked, but it is optional to check it. So this patch seems O.K. I suppose the commit message could be extended with: In this case, the shiny new stuff is not useful, so ignore it. But: Reviewed-by: Andrew Lunn Andrew