Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp368135ybx; Wed, 6 Nov 2019 01:53:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwWrbm75y3Skhm7n2z8Jiv8sIuqhdMktIwi+3bdtF7MaA1WLnP+/glhC3RhdpxO7WS8av3m X-Received: by 2002:a50:d7c9:: with SMTP id m9mr1627648edj.93.1573033988869; Wed, 06 Nov 2019 01:53:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573033988; cv=none; d=google.com; s=arc-20160816; b=rsgomzaWs4lbcstqz7DIg2Gw36L4dSG99J81qhTnWViCIpR9k/Hr8wxdgFT0eroRxW R6jhhATNgSJW1x4uLfGkIvCmAj1cntKvh3FlAh7DEttpFk852EFhnX3JtwXvhJhxOc9Y jmSwjGD5NGWeot5D/tS0tKcnwzShW2ZSSH4vbteLbU8QNgDwELj41MOpxTvPt0n4f3jl nHSMnM05Pn1Xb7iLaSfim5oKXyeiW34TjTAqRmfjscEGF1secYWqwCKdJ+kWc7HuD+oH teUCnhzjcvY0XhIkHX/1rsEhmLPD+o2nkipJfhrIHLCkkZwep/BasMlcqNhwh97Hd7L7 Tucg== 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=qyltg4jv8kdh0PtYhVOeuZnLFt3C1qtY0yyDNtiFxl0=; b=fR5jOBH34tfu3fLjaEuO3G6GE54QruwNM/qakU0KXdfZtC77OZo+O2W4wa1ZMf2oRQ bo4+4kDRDl/uCCH0NaJZuYUHLaQ7vjlnuVOwHWvf3cu6sPaUuAr4FILfeAEeqh4qxAa8 8DGJZ8XKplGrQQ8EOnGtWRaiZGIpRrLvC2A0F4DeCP2G7MRkBqrX+9gQ4Ksa7x3rH331 a7C7jZHwjSD/rSKIH9zGRuL85X8R2KyvenI/+y0RX2UH0L2W3nmd0cOcIDVGduTi0Urg GnKcFuPKbl30teF9iPaEbL+cPa28Y0S1b+84CkubaB0hTC0g0g/sD/XL3Pia1BsEQBuV VCUg== 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 s58si11825504edm.45.2019.11.06.01.52.45; Wed, 06 Nov 2019 01:53:08 -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 S1731715AbfKFJul (ORCPT + 99 others); Wed, 6 Nov 2019 04:50:41 -0500 Received: from sauhun.de ([88.99.104.3]:50202 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727015AbfKFJui (ORCPT ); Wed, 6 Nov 2019 04:50:38 -0500 Received: from localhost (p54B33505.dip0.t-ipconnect.de [84.179.53.5]) by pokefinder.org (Postfix) with ESMTPSA id 736C82C0553; Wed, 6 Nov 2019 10:50:36 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 05/12] video: fbdev: matrox: convert to i2c_new_scanned_device Date: Wed, 6 Nov 2019 10:50:23 +0100 Message-Id: <20191106095033.25182-6-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 --- Build tested only. RFC, please comment and/or ack, but don't apply yet. drivers/video/fbdev/matrox/i2c-matroxfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/matrox/i2c-matroxfb.c b/drivers/video/fbdev/matrox/i2c-matroxfb.c index 34e2659c3189..e2e4705e3fe0 100644 --- a/drivers/video/fbdev/matrox/i2c-matroxfb.c +++ b/drivers/video/fbdev/matrox/i2c-matroxfb.c @@ -191,8 +191,8 @@ static void* i2c_matroxfb_probe(struct matrox_fb_info* minfo) { 0x1b, I2C_CLIENT_END }; - i2c_new_probed_device(&m2info->maven.adapter, - &maven_info, addr_list, NULL); + i2c_new_scanned_device(&m2info->maven.adapter, + &maven_info, addr_list, NULL); } } return m2info; -- 2.20.1