Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp380999ybx; Wed, 6 Nov 2019 02:08:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzQ4l2tL5lhuSlaDtN1DHHeGOcDfqKDzhKRwLodzblqZVrKyKQrDfyIdKJHs5MIr9ko8OmH X-Received: by 2002:a17:906:70e:: with SMTP id y14mr16946188ejb.70.1573034887638; Wed, 06 Nov 2019 02:08:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573034887; cv=none; d=google.com; s=arc-20160816; b=UVOWChpDHU3QcdzEiTjpjIBA5m1pYYwNVYJl3tFM7I4F2eox5Z+UzrGDzeKPCucYo/ VrC3D5Ywh0Cq/jwutS3XEP2xoyiWiElYqYfltfYu3WBjPrBm6aXuGZDW+tnLfmUI2y6f tKIYPyw3BAtEZKOktxWL3ZxqIA2LEqzOtYStcK533EKmJFDUeO3QXI/d1btAnPeNR1Np TCqWSAJ4Ao2WyEYILNAg7SKC3zfFlUBh94nauEY0HSFJDp4ono/iZTUh4sDW3kXHIbq+ lcD4pwFOl4XrzklyDtOhWkILL/xAs2Fre9r+PBST+rr22Rw7VS6fQewlYL/VJm2jT7Ef xrYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=n4oIdc0ezG73ZRWz/16G1oZlT0tEB4cm+CoSpZQiJpU=; b=yt1x5AOjw0mDz65DVRLTBHPUey0OPLgawwV7ID7Q9U/QDlNebpXIC6L8RoET5/Pu8V CCz7a19TqT3IQQ2jqeBg+rr8lJP46pbhalARFRwKPJdgWiMpBQJcUPcNpJw0HAOuZuGB u1+TpRcO/wfevPfnN/+0zILvPU0yXvra0aHs53mLGVG/pXEK1sGyZQMYfH8RFT8pLUQX WuHFOVMN5XdGjCkx8LExeiMWnz8Of7XWJYpxDlJiCeGZn+C0PDm8/s3ljWrRDqfyyEU6 YWmOlp+Y9yk+Hs+421tKe9Mtaa/qsX2XnSRqPhpFKI2e1cwpfERloELg9QmniHLbK4vO K0ZA== ARC-Authentication-Results: i=1; mx.google.com; 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 i3si7192522ejv.41.2019.11.06.02.07.42; Wed, 06 Nov 2019 02:08:07 -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; 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 S1728691AbfKFKG5 (ORCPT + 99 others); Wed, 6 Nov 2019 05:06:57 -0500 Received: from gofer.mess.org ([88.97.38.141]:45907 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbfKFKG5 (ORCPT ); Wed, 6 Nov 2019 05:06:57 -0500 Received: by gofer.mess.org (Postfix, from userid 1000) id 5EF88C635F; Wed, 6 Nov 2019 10:06:55 +0000 (GMT) Date: Wed, 6 Nov 2019 10:06:55 +0000 From: Sean Young To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Wolfram Sang , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [RFC PATCH 00/12] i2c: replace i2c_new_probed_device with an ERR_PTR variant Message-ID: <20191106100655.GA2743@gofer.mess.org> References: <20191106095033.25182-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191106095033.25182-1-wsa+renesas@sang-engineering.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 06, 2019 at 10:50:18AM +0100, Wolfram Sang wrote: > From: Wolfram Sang > > In the on-going mission to let i2c_new_* calls return an ERR_PTR instead > of NULL, here is a series converting i2c_new_probed_device(). A new > function called i2c_new_scanned_device() is introduced with the new > retval, but for now, a compatibility helper is provided until all users > are converted. The rest of the patches convert all current in-tree > users. > > Note that these patches are RFC because I want feedback on the approach > and hopefully collect acks on the driver conversions. If all goes well, > I'll apply the first two patches for the next merge window. Then, once > this dependency is upstream, I'll resend this series with all issues > fixed and acks collected. The patches to drivers/media/pci/* are all IR related which have touched on/read over the years. So, for those: Acked-by: Sean Young > > Core changes tested on a Renesas Salvator-XS board (R-Car M3-N), driver > patches build tested by me and buildbot. > > Wolfram Sang (12): > i2c: replace i2c_new_probed_device with an ERR_PTR variant > i2c: icy: convert to i2c_new_scanned_device > macintosh: convert to i2c_new_scanned_device > platform: chrome: convert to i2c_new_scanned_device > video: fbdev: matrox: convert to i2c_new_scanned_device > input: mouse: convert to i2c_new_scanned_device > media: pci: cx23885: convert to i2c_new_scanned_device > media: pci: cx88: convert to i2c_new_scanned_device > media: pci: bt8xx: convert to i2c_new_scanned_device > media: pci: cx18: convert to i2c_new_scanned_device > media: pci: ivtv: convert to i2c_new_scanned_device > media: v4l2-core: convert to i2c_new_scanned_device > > Documentation/i2c/instantiating-devices.rst | 10 ++++----- > Documentation/i2c/writing-clients.rst | 8 +++---- > drivers/i2c/busses/i2c-icy.c | 8 +++---- > drivers/i2c/i2c-core-base.c | 25 ++++++++++++++++----- > drivers/input/mouse/psmouse-smbus.c | 8 ++++--- > drivers/macintosh/therm_windtunnel.c | 4 ++-- > drivers/media/pci/bt8xx/bttv-input.c | 6 ++--- > drivers/media/pci/cx18/cx18-i2c.c | 2 +- > drivers/media/pci/cx23885/cx23885-i2c.c | 4 ++-- > drivers/media/pci/cx88/cx88-input.c | 2 +- > drivers/media/pci/ivtv/ivtv-i2c.c | 6 ++--- > drivers/media/pci/ivtv/ivtv-i2c.h | 2 +- > drivers/media/v4l2-core/v4l2-i2c.c | 10 ++++----- > drivers/platform/chrome/chromeos_laptop.c | 18 ++++++++------- > drivers/video/fbdev/matrox/i2c-matroxfb.c | 4 ++-- > include/linux/i2c.h | 12 +++++++--- > 16 files changed, 76 insertions(+), 53 deletions(-) > > -- > 2.20.1