Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp502331ybl; Tue, 7 Jan 2020 09:50:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxhyz/kMrg5Y8UWkXLxm2rfciFMvg3Em5Lkvuc8a/4HlSzg+yuiqvnmEheJgMWcpBo7q4sS X-Received: by 2002:a9d:7448:: with SMTP id p8mr964051otk.96.1578419419550; Tue, 07 Jan 2020 09:50:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578419419; cv=none; d=google.com; s=arc-20160816; b=drH7pTAM0DmK7BV1Ky1v5zhLz5dCbfWj2D+G/P8hD0Ym2SMn5UCDYGipZL0YgSNcGz piVvq3G17SscLBjAeDUJ4SubZ3P76b8Ne0UmHcrm9yxhGxlTKy2ZggTziRCu6tm4/Xsu aEDNrPeQiIdfA7JLSJ07O1YkschZ4yiSmH3xp7Vk+LBlFEmyXydpXdCELF39zMx0HCDE czYeHwiEdZ79Z4uwgiQLIMNq7AAVJGar1zEGtWaO6wz7O/yFwM9ZqhXl2aUEqSZEL0oT vu7M+QHLGY6RGBW+8d/iSfPFqWmvJ32cvumBEwt+bZnqnKiX+fpx2cAV1aCMZmr1GmXP XDGg== 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=etcRuRh46un4GmMnPfkzZU/ddPdmz8kbakS4HUyZl08=; b=nQDBqQI5VFLXYWp88bFgRllKsaMu0NFzyRiuvNS4qHTPcGPNJ/BOEVbPDGozfKCcgI FkYAlV0WtrdHrAd2cY3iupjdY7Mlsv/ZqjrNgQwZnFZeeAk2RNF4m6fmreDS8qz2GgPp xhuueF2peSGUROa0jCZWugISaDktHiuAZXv1q8cFasSoASTljDxRlGO8AUdV4u4Ed7FA zd5YqE0Ro7CrSIFnckHELDBwKm/Z4Ww4Eo2RNKItQjJio4ry+gHuZEYFvXxBYAVH8/Sa kFLbWLnneaYCAvgyv41g3V/DTsTs/AMTyjCDOpMA6LlRGHieyj5DkKrlywhKN9gGCGL3 uoLA== 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 j9si324556oii.195.2020.01.07.09.50.06; Tue, 07 Jan 2020 09:50:19 -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 S1728544AbgAGRsS (ORCPT + 99 others); Tue, 7 Jan 2020 12:48:18 -0500 Received: from sauhun.de ([88.99.104.3]:53326 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728407AbgAGRsS (ORCPT ); Tue, 7 Jan 2020 12:48:18 -0500 Received: from localhost (p5486CF8B.dip0.t-ipconnect.de [84.134.207.139]) by pokefinder.org (Postfix) with ESMTPSA id 7CEE02C3946; Tue, 7 Jan 2020 18:48:16 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Jean Delvare , linux-kernel@vger.kernel.org Subject: [PATCH 02/12] i2c: i801: convert to use i2c_new_client_device() Date: Tue, 7 Jan 2020 18:47:36 +0100 Message-Id: <20200107174748.9616-3-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-i801.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index f5e69fe56532..44db3a91d32d 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -1142,7 +1142,7 @@ static void dmi_check_onboard_device(u8 type, const char *name, memset(&info, 0, sizeof(struct i2c_board_info)); info.addr = dmi_devices[i].i2c_addr; strlcpy(info.type, dmi_devices[i].i2c_type, I2C_NAME_SIZE); - i2c_new_device(adap, &info); + i2c_new_client_device(adap, &info); break; } } @@ -1296,7 +1296,7 @@ static void register_dell_lis3lv02d_i2c_device(struct i801_priv *priv) memset(&info, 0, sizeof(struct i2c_board_info)); info.addr = dell_lis3lv02d_devices[i].i2c_addr; strlcpy(info.type, "lis3lv02d", I2C_NAME_SIZE); - i2c_new_device(&priv->adapter, &info); + i2c_new_client_device(&priv->adapter, &info); } /* Register optional slaves */ @@ -1312,7 +1312,7 @@ static void i801_probe_optional_slaves(struct i801_priv *priv) memset(&info, 0, sizeof(struct i2c_board_info)); info.addr = apanel_addr; strlcpy(info.type, "fujitsu_apanel", I2C_NAME_SIZE); - i2c_new_device(&priv->adapter, &info); + i2c_new_client_device(&priv->adapter, &info); } if (dmi_name_in_vendors("FUJITSU")) -- 2.20.1