Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1826281ybl; Thu, 9 Jan 2020 02:16:33 -0800 (PST) X-Google-Smtp-Source: APXvYqw4camWnwxeB5zr7uKyzoT5pdmW7Y4z4+EDVPHxeGODl2wC/dNVfiSl1VjEqJ9PORtNpj0y X-Received: by 2002:a9d:6d06:: with SMTP id o6mr7951736otp.239.1578564993401; Thu, 09 Jan 2020 02:16:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578564993; cv=none; d=google.com; s=arc-20160816; b=DdSSypw5NK6y0ZeFHFBUZdyg++RRMaje/CYA2EKXZx0t66GNojVbzhen72aG2mmVvW UbO9z8VKG9RZx1/rQcggnemoW/3Ek2sbHMSq3EJ9ydUVaqPJM4DcU6ZhkOolf2L4vRWs 8PzHiEw1xwQIF4R0vjio3wlcOQY2dRrMLmCcq2O+OARcMKwcaig7cfW48EL/4tKdjhn1 Wv1cMKKaRMfXJMxYnfLEYUHriihzT/fJmjC6fjtX0qP8l+jVKLyt6//pM+IaYHnF33XC om2TbtHPVmqgjItUCkALsLWeGObpneIT3xTFaXnyaODbuC2x9JKmty4Cec3R61rR9h0x 2X6A== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=jmB/grXG4GwUP6Rk0AGvN94Ntd2nEQiI6kBm+Tts0tA=; b=0EVVybqyqt+fWxhCdA8NxgXYhh0UaSuHnwqqPekvzpIxTD1tNmHC9yrA67WqxVr6Cg FlwNzT4X1vASQACkELHNOtcKxTleAZawEgiVgPC/LJJjabeiT4hef+wrpuvVDt9v6zWm 1A9myjTVXAuEmx40zNVtTjIuOCiEel/QTY9purkyoJQOJK2g6JQZQnIyEvMzLzmmmb4Y kxJBFEvSgkdDHFGjgT7psUlSJwW2QU2um7KfW3zZOvFURlrIxhYqjQnIezDfBgiPYhut xAdE193mpTbB0To68oqwunW4wTAyJ89YgH6qxyKnXsgtYcQXDoEc+VvFPrxcLZoowNBx KKMQ== 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 x16si3802208otp.184.2020.01.09.02.16.21; Thu, 09 Jan 2020 02:16:33 -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 S1729090AbgAIJMv (ORCPT + 99 others); Thu, 9 Jan 2020 04:12:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:46330 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728448AbgAIJMv (ORCPT ); Thu, 9 Jan 2020 04:12:51 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7462EB9EB; Thu, 9 Jan 2020 09:12:49 +0000 (UTC) Date: Thu, 9 Jan 2020 09:54:58 +0100 From: Jean Delvare To: Wolfram Sang Cc: , Subject: Re: [PATCH 02/12] i2c: i801: convert to use i2c_new_client_device() Message-ID: <20200109095458.62499f28@endymion> In-Reply-To: <20200107174748.9616-3-wsa+renesas@sang-engineering.com> References: <20200107174748.9616-1-wsa+renesas@sang-engineering.com> <20200107174748.9616-3-wsa+renesas@sang-engineering.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Jan 2020 18:47:36 +0100, Wolfram Sang wrote: > 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")) Reviewed-by: Jean Delvare Thanks, -- Jean Delvare SUSE L3 Support