Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp502996ybl; Tue, 7 Jan 2020 09:51:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwBXxfqLGNnXR7nVwkp21xYFucYO7uQJDd90IoVk7zBxWkuHZY7IZv3GxlGKt5lpKVEUXUT X-Received: by 2002:a9d:708f:: with SMTP id l15mr986875otj.229.1578419464796; Tue, 07 Jan 2020 09:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578419464; cv=none; d=google.com; s=arc-20160816; b=MKv5sIZ6we/mcwkC2Wg3jTUr8o+yiF+7nbAHvPtuSSm9igYZ8vU2teOZqODTwtHUzQ NPo5MdY8XYzlrtMUcNS/EesOHlxPKkfqTaAecTmCajAAUu0OWAt/WoAeRtkcHByRzrul zogOG2g02oIIO34idnxZrOTa3nKIKECbyLRTnlb/omcw+cc582al+aJq3M8KgObgBXhR kLLMULVMwDciPXdpq3STgM9nqahxnuVZL9tBXsgCcOqIAmhFDm3TCpdb1dfODwiVXmdo fBm7QSHCbWHCTPW4nnNEwYU9BSzzaUCO0cGDC7L0Pjt2bFQG3htaZmEuYKegylPjF5tF 80Wg== 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=9b3sOGUkNuHXdfLP+La88tUV4bvWKCLT4VErhiMhzM8=; b=FrWsmK2Y9+Ka9ZCmMhr1rAKebu876BLuykHlDZIKQkXNm1dFQaa+9ChwvkYVIBmS/q cP6Yis+GS86AoJr85gokRQts5ZOEEoKj9fLsAq7CLDnpjWItaajfvsG9KXtxnf60Ssrf 80LH2etqSJ5JPSBKzZAljeTsmYxQo/g5VXaVuuDrBAydoduf4KNbBbDCv1P8KGF3zWXU mMQyN34CLXdm+W7YWTYpRvaIAkpXeqCgAPHWm1Pszjoh7606F+giydGw85CflrAEVHD3 OHFkFuo1X6tjOrLFyWSX4XOS5nG8L5uSaldhkLd+aMFbGHAaCQUdQbvJgm34SSWFAnET IM+w== 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 44si271733otu.77.2020.01.07.09.50.51; Tue, 07 Jan 2020 09:51:04 -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 S1728673AbgAGRso (ORCPT + 99 others); Tue, 7 Jan 2020 12:48:44 -0500 Received: from sauhun.de ([88.99.104.3]:53364 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728555AbgAGRsU (ORCPT ); Tue, 7 Jan 2020 12:48:20 -0500 Received: from localhost (p5486CF8B.dip0.t-ipconnect.de [84.134.207.139]) by pokefinder.org (Postfix) with ESMTPSA id C527E2C3955; Tue, 7 Jan 2020 18:48:18 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Jean Delvare , linux-kernel@vger.kernel.org Subject: [PATCH 06/12] i2c: taos-evm: convert to use i2c_new_client_device() Date: Tue, 7 Jan 2020 18:47:40 +0100 Message-Id: <20200107174748.9616-7-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200107174748.9616-1-wsa+renesas@sang-engineering.com> References: <20200107174748.9616-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 and return the shiny new ERRPTR where useful. Signed-off-by: Wolfram Sang --- Build tested only. drivers/i2c/busses/i2c-taos-evm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-taos-evm.c b/drivers/i2c/busses/i2c-taos-evm.c index 0bff3f3a8779..b4050f5b6746 100644 --- a/drivers/i2c/busses/i2c-taos-evm.c +++ b/drivers/i2c/busses/i2c-taos-evm.c @@ -49,10 +49,10 @@ static struct i2c_client *taos_instantiate_device(struct i2c_adapter *adapter) if (!strncmp(adapter->name, "TAOS TSL2550 EVM", 16)) { dev_info(&adapter->dev, "Instantiating device %s at 0x%02x\n", tsl2550_info.type, tsl2550_info.addr); - return i2c_new_device(adapter, &tsl2550_info); + return i2c_new_client_device(adapter, &tsl2550_info); } - return NULL; + return ERR_PTR(-ENODEV); } static int taos_smbus_xfer(struct i2c_adapter *adapter, u16 addr, -- 2.20.1