Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2377493pja; Thu, 26 Mar 2020 14:14:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt+3qEd3sMevrklI0bnsCGZdF6bBAPMqrS/A5ZT40JHvL9VHLtyTSggvNVpKPthtjC/lf2i X-Received: by 2002:aca:a94a:: with SMTP id s71mr1683862oie.152.1585257277991; Thu, 26 Mar 2020 14:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585257277; cv=none; d=google.com; s=arc-20160816; b=ES/LtdJxSSSWr03pTawSWr8niytmHcNpc+T1Ly+6UHqJxArXomFuTXefsHFaAHH1HG jrA6SWP69b+deN+mI/3tHSylnXdgK+qhyaCfCnWcOtLDGKUTZ5ChFbYaptXxSVumvfzh ttdlQU/mHu+dNUgPY4NKUaBhb12IpjXYG3BI/V6pK8L805hDCYg6Jzl0xK6e9gf4ByBi HNoT/GeE8r18iNC3DtepvJIFouYoyRxl+oPO7RGAEi53RA+WS7SC2CZrGTPIwsQUA1Iw Q5e9RRAAQkDRKiMZQZnAvZGkQB/eK902aIDETupx8ia0V6EYbyIsJIU0LmjNphJn9Hzd JflA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0+DQh0NPAQEiVp0zQgWtxCJtAqbzk7VJZyv2/yPKdo0=; b=qMehW/DhPRefI9lKxDqYZLCPCKyJ4T6w/sekXrU55gw5p9GOipfUnCYpvUqo+euxuM GH3fyb4YcZEjGwopa9QkCqj7PmZFGr9hQcWAPsV7rxlh/rWTXPZ7V2/eYTmqAp0xuGbL V8OisMiBFo9FOtCicx+gTGGjl/u/Pgh2yHR2AyMFnNkhfZcT0lZ0BfKQl7ssm2hM0ccn CgJa9tHQGp4TVcBD/GJwCrcw1sctJIThRZUzoaz9n8NrebLC12oWo2mx0UXKIWyTjyaD ttkc0iJjV4kaOGOaCCPowzbs3hJaJJghjvV6NyNpIMBoaE+sP1jpPTzrEgN1Vm23jcMU eKbw== 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 h9si1334906oti.155.2020.03.26.14.14.24; Thu, 26 Mar 2020 14:14:37 -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 S1728232AbgCZVMb (ORCPT + 99 others); Thu, 26 Mar 2020 17:12:31 -0400 Received: from sauhun.de ([88.99.104.3]:54342 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgCZVJx (ORCPT ); Thu, 26 Mar 2020 17:09:53 -0400 Received: from localhost (p54B3331F.dip0.t-ipconnect.de [84.179.51.31]) by pokefinder.org (Postfix) with ESMTPSA id B20A02C1F84; Thu, 26 Mar 2020 22:09:51 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Mike Isely , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] media: usb: pvrusb2: convert to use i2c_new_client_device() Date: Thu, 26 Mar 2020 22:09:46 +0100 Message-Id: <20200326210947.12747-7-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200326210947.12747-1-wsa+renesas@sang-engineering.com> References: <20200326210947.12747-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.20.1