Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp369951ybx; Wed, 6 Nov 2019 01:55:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzzf1ivB7ULFoAvyBW+Mk9Kkn+IUzBVXz9zokKxLO9HN0SvL22K0981mNECaRhn1qVLLlMS X-Received: by 2002:aa7:d0c4:: with SMTP id u4mr1637354edo.8.1573034139195; Wed, 06 Nov 2019 01:55:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573034139; cv=none; d=google.com; s=arc-20160816; b=ftwLCA5HIVd6oqBIKM7P8hEsaaepDrNlkx7h5SLI+T8kbAOH7sCtesckj/AGpQB+pY ILCKf7cgvb9KlhiChla456KmfMxe5iAzCu+xyJsSWexo553sgaRJbwVsfI2omI2nxtQF ar/4Y57Jp7yCUxbqUo7gYVyPpdH8owCn8lW9LxpUalo0Uue3lJ3xFD6BIsiyPbwXxFf4 dB09QBO6lhOCLAoY0p3hLGFojl3IzIbQN/xzdTWodjFNU/yGfz2hJPNo7Uz6xBY9HW44 TH77ELa8XYBfRn2giWqKbvutEn70/MxawFWAMyipHHVZLWLS9iK2TtvWClZeDZ2zz1/q G/Pw== 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=qN3c6hkpUacMXiVDhJF7XKRcSxydjxVNPCja3zdke1c=; b=Y8eBaw/KiW5kzLRCEruNWOSiBgjLyzxeZ9AXdfjwdmd8QuCee2Qc5QGAnr4j5Sckb7 1GCTAJzwb5pI0XB7/AxsaCJ/c9S5Tqq2an4pHw60N0gmOiQ8p0sMclO5MPzo3Kr48cFV yePay3ZKIzrYU9H2EEQ/x1j+SLWsmN2+YfOjGqjJA0qgyknHJ2FxHCELOzLFaqYqz9sG qWrXQZPGAm0v5DKpPIXVlkJw5NAwc8Gwqo932EbtrcDLWRPq8FvfKs3ETclnHd+LPC1l qliuH2HmnCuT90oMWtSiZzvU2FJ8xxv7uZzWn0tlu6qQE6F3k56S1zRBnqYoIKJSZ/Ky 95MQ== 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 jt21si781745ejb.390.2019.11.06.01.55.15; Wed, 06 Nov 2019 01:55:39 -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 S1729015AbfKFJug (ORCPT + 99 others); Wed, 6 Nov 2019 04:50:36 -0500 Received: from sauhun.de ([88.99.104.3]:50164 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727239AbfKFJug (ORCPT ); Wed, 6 Nov 2019 04:50:36 -0500 Received: from localhost (p54B33505.dip0.t-ipconnect.de [84.179.53.5]) by pokefinder.org (Postfix) with ESMTPSA id C36BD2C0548; Wed, 6 Nov 2019 10:50:34 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Max Staudt , linux-kernel@vger.kernel.org Subject: [RFC PATCH 02/12] i2c: icy: convert to i2c_new_scanned_device Date: Wed, 6 Nov 2019 10:50:20 +0100 Message-Id: <20191106095033.25182-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191106095033.25182-1-wsa+renesas@sang-engineering.com> References: <20191106095033.25182-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 from the deprecated i2c_new_probed_device() to the new i2c_new_scanned_device(). Make use of the new ERRPTR if suitable. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-icy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-icy.c b/drivers/i2c/busses/i2c-icy.c index 8382eb64b424..07baa4d8de39 100644 --- a/drivers/i2c/busses/i2c-icy.c +++ b/drivers/i2c/busses/i2c-icy.c @@ -188,10 +188,10 @@ static int icy_probe(struct zorro_dev *z, ltc2990_info.fwnode = new_fwnode; i2c->ltc2990_client = - i2c_new_probed_device(&i2c->adapter, - <c2990_info, - icy_ltc2990_addresses, - NULL); + i2c_new_scanned_device(&i2c->adapter, + <c2990_info, + icy_ltc2990_addresses, + NULL); } return 0; -- 2.20.1