Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1153433ybb; Sat, 28 Mar 2020 20:20:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsl3Qypmy01PtBROjrvxb1giCoQf2quAmmVcK460+fIjc568TS/ACbindBJ+HV25kJ1oDoL X-Received: by 2002:a9d:6c19:: with SMTP id f25mr4757336otq.371.1585452040864; Sat, 28 Mar 2020 20:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585452040; cv=none; d=google.com; s=arc-20160816; b=LUcSM2IAfB/eKsZdrNOhE1uR3e553NwoiZjm0bxWmOGrk0TQs2v7hSNjQE7cVlFTS+ b1KnVTWt6TDfk8zk6F6qwDnFB2iTjJXTrrSyD2HcCIn8WFeAdYVdgU1NHyTQR00WpMM0 CqAQR4A0nHP+RrB3cjoHD2yNjdKXVfKF71rXrfFBeBarjWQYo0kkTgAUvIF1JZ/caSgE /rL4kRIaN1HwEhuNMuDBV0el7IlQ2MtaCaTTw47kvftUh2P/EklcNVm3njXrQY/mGMia 0M2fWJKSp7tU9d7qPNjwCxFMQu+yOplBMcz/Dinm3FxVYo7a/R6Nd4u1MyTy1+TP9ipI HWeA== 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:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date; bh=f+8/l8SrpL3XlsHn3nfaPDzSc67XXC+ikUIPs9pyiQA=; b=XK7MCz7G5mPTu1UfEEa0JDgqYjtLq/hg1LA0/KxVqSZIQoluRuHkXLhYDxMruoZ3sS es4wmWMiI553Z7XXag04VfNnugknhiymgyiW7u8Lk0WBIeNu5j1MFC7ZttzCpTiKDhOG W3D72wEirHw+tQEkUq2OslbBJEFm3UU6eC0ESIQYvwJN6xrwuEseWRo/RLibM7Wk6Htp NxJxx2XpICcCvSX+lecdVHrHKo+e52WKEBoJntYQL0+qRKIQG4KoZB7w+Ybj85B4+mla ByK5/ay4GtcVrxr94BimaSLXLNGPx9vXt3yFzQfvxiVPZy4yLY5ah6ew7EWvngq+slNv DJeg== 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 o13si4535812otk.135.2020.03.28.20.20.28; Sat, 28 Mar 2020 20:20:40 -0700 (PDT) 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 S1727193AbgC2DTP (ORCPT + 99 others); Sat, 28 Mar 2020 23:19:15 -0400 Received: from cnc.isely.net ([75.149.91.89]:54423 "EHLO cnc.isely.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbgC2DTP (ORCPT ); Sat, 28 Mar 2020 23:19:15 -0400 X-Greylist: delayed 304 seconds by postgrey-1.27 at vger.kernel.org; Sat, 28 Mar 2020 23:19:14 EDT Received: from ts3-dock2.isely.net (ts3-dock2.isely.net [::ffff:192.168.23.14]) (AUTH: PLAIN isely, TLS: TLSv1/SSLv3,256bits,DHE-RSA-AES256-GCM-SHA384) by cnc.isely.net with ESMTPSA; Sat, 28 Mar 2020 22:14:09 -0500 id 0000000000146015.000000005E801281.00004342 Date: Sat, 28 Mar 2020 22:14:09 -0500 (CDT) From: Mike Isely To: Wolfram Sang cc: linux-i2c@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, Linux Kernel Mailing List , Mike Isely Subject: Re: [PATCH 6/6] media: usb: pvrusb2: convert to use i2c_new_client_device() In-Reply-To: <20200326210947.12747-7-wsa+renesas@sang-engineering.com> Message-ID: References: <20200326210947.12747-1-wsa+renesas@sang-engineering.com> <20200326210947.12747-7-wsa+renesas@sang-engineering.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Mike Isely On Thu, 26 Mar 2020, Wolfram Sang wrote: > Move away from the deprecated API. > > Signed-off-by: Wolfram Sang > --- > drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c > index 275394bafe7d..63db04fe12d3 100644 > --- a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c > +++ b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c > @@ -564,7 +564,7 @@ static void pvr2_i2c_register_ir(struct pvr2_hdw *hdw) > strscpy(info.type, "ir_video", I2C_NAME_SIZE); > pvr2_trace(PVR2_TRACE_INFO, "Binding %s to i2c address 0x%02x.", > info.type, info.addr); > - i2c_new_device(&hdw->i2c_adap, &info); > + i2c_new_client_device(&hdw->i2c_adap, &info); > break; > case PVR2_IR_SCHEME_ZILOG: /* HVR-1950 style */ > case PVR2_IR_SCHEME_24XXX_MCE: /* 24xxx MCE device */ > @@ -579,7 +579,7 @@ static void pvr2_i2c_register_ir(struct pvr2_hdw *hdw) > strscpy(info.type, "ir_z8f0811_haup", I2C_NAME_SIZE); > pvr2_trace(PVR2_TRACE_INFO, "Binding %s to i2c address 0x%02x.", > info.type, info.addr); > - i2c_new_device(&hdw->i2c_adap, &info); > + i2c_new_client_device(&hdw->i2c_adap, &info); > break; > default: > /* The device either doesn't support I2C-based IR or we > -- Mike Isely isely @ isely (dot) net PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8