Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp454201ybx; Wed, 6 Nov 2019 03:20:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxd6UYv28fYGJ3/4gPY43yi4BVeXnQHAutfR8io3oviOUQd2CbF0CDUm5bbAS/r8CusUs/e X-Received: by 2002:a17:906:4e53:: with SMTP id g19mr29878989ejw.286.1573039205870; Wed, 06 Nov 2019 03:20:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573039205; cv=none; d=google.com; s=arc-20160816; b=fGw2VsjPJsyv6SBUkCYawAh/34q7TbApmzpuf4Ksi3yQWjolODcnrmNXIgs+HAOSct QuCQ62QooRwHglGC1ZDLflbdA9/z+8iKABWQ7xZsWoXm/3XbC5rgB6F80hDOoDy22oqS NtNz6raej6X/yue6AwyW80/kJ4lihQ16MyYcnmkv0dfcBOOLPt5+qYvV3nePSNoMVr/e r638PtyWGlCjA/hiX4doTaCTUFT9AOZHRprEOJGKbcfsSOaBchNyM6iuNPpyw3ePObVQ fccSFWadY7Hplxvk8hS6moMK++oHzy0S1I0O5WKIaBBHmMYFJE20QpbKKQOOIj0IpHNI J7NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Q6nejlrKZiDHlU8LtAdNxM7nltriogJw2bxV9XcitWY=; b=zuExzlj4tg4sOeDcFxUkLBoPvHEBtXIwnfrx7BID5azxRXJ2wFW+tgqrPMVQOrZhwT FdCMK7vJt61yKWrzcHZNElyZfYuQ+n93eqKBoWgEb4FoZO+Ti6CyorMWcXTvEzOQV2Ek QYZXmGeq62ojvA6bQe2v635PPQVgjsoUNtcXA5Jm2fUMYFXAliGnnOCqBgQpGYQjUV8F MpUdjBHvFI/5xbzT8UBdoqGozdT+PqXdWkcLu/Sap7NpdwyzTbpl6DbGUmGdVs1v7Pw0 ScpLi/NIrL7JSuviqPkUCAj1FnEQuSbmeEtNbZd0MV1EXYVftRhMWq4OvEzNv+UY3K8E +n2A== 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 h53si12495396edh.200.2019.11.06.03.19.42; Wed, 06 Nov 2019 03:20:05 -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 S1731414AbfKFLSf (ORCPT + 99 others); Wed, 6 Nov 2019 06:18:35 -0500 Received: from lb3-smtp-cloud8.xs4all.net ([194.109.24.29]:39477 "EHLO lb3-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727391AbfKFLSf (ORCPT ); Wed, 6 Nov 2019 06:18:35 -0500 Received: from [IPv6:2001:420:44c1:2577:dd0c:75f0:7ccb:ac5a] ([IPv6:2001:420:44c1:2577:dd0c:75f0:7ccb:ac5a]) by smtp-cloud8.xs4all.net with ESMTPA id SJKWiPPkxTzKrSJKaiy8X2; Wed, 06 Nov 2019 12:18:32 +0100 Subject: Re: [RFC PATCH 08/12] media: pci: cx88: convert to i2c_new_scanned_device To: Wolfram Sang , linux-i2c@vger.kernel.org Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191106095033.25182-1-wsa+renesas@sang-engineering.com> <20191106095033.25182-9-wsa+renesas@sang-engineering.com> From: Hans Verkuil Message-ID: Date: Wed, 6 Nov 2019 12:18:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191106095033.25182-9-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfPPrPEgl/e6PlsHQf1PVG7+t9BuDd5hPsz+YvyEUimRnm2bOxycpzj8P+U1ME9ra/joFTgu65ejIp6Qz/x9hCziSXsYqlb2pCd41b+szd7Nz++bIUZVW UgSLENZrg84KbDFbnu/9dvvnn0VquEkRnAf2ZoYLAg8yFjHWlGFAdiO1nNG2GCyjFYaq5VD1nL5Gpnet1ZRif1pCfJPs+gnBj32/hP3e5P5stThk/GoTvXMK sJHHAT2HXJAxloQCwGfdjRUlwlthToq0pffgDcrdVWlaylJKvwzQ+80rdjafCb9C+LzCRyLDCndZQleE5Tw0pI/v0xNs46maAsnEZu5zseLt4QsWZWH2+PS6 JpsIL5/KOznwTrZCHQbgO9TvoQdW8bFWhiz206Kn8RvU60aQpd2l4wKeFL38yGIT4/MVA1EbiLy+4vPjsAKudu0PxGqaHg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/6/19 10:50 AM, Wolfram Sang wrote: > Move from the deprecated i2c_new_probed_device() to the new > i2c_new_scanned_device(). Make use of the new ERRPTR if suitable. This commit text is a bit out-of-sync with the actual patch. This should be improved for the next version. Looks good otherwise. Regards, Hans > > Signed-off-by: Wolfram Sang > --- > > Build tested only. RFC, please comment and/or ack, but don't apply yet. > > drivers/media/pci/cx88/cx88-input.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/pci/cx88/cx88-input.c b/drivers/media/pci/cx88/cx88-input.c > index 589f52d961eb..c7c2acd55266 100644 > --- a/drivers/media/pci/cx88/cx88-input.c > +++ b/drivers/media/pci/cx88/cx88-input.c > @@ -613,7 +613,7 @@ void cx88_i2c_init_ir(struct cx88_core *core) > } > > /* > - * We can't call i2c_new_probed_device() because it uses > + * We can't call i2c_new_scanned_device() because it uses > * quick writes for probing and at least some RC receiver > * devices only reply to reads. > * Also, Hauppauge XVR needs to be specified, as address 0x71 >