Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5611553pxj; Wed, 23 Jun 2021 05:21:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkt/8LTsLIn6MbE3hWpXnWHK6zbnI6WChKeKkUmGEr2B7RCZNl890gYa3iilWtA494Bu5t X-Received: by 2002:a05:6402:101a:: with SMTP id c26mr11954062edu.317.1624450895197; Wed, 23 Jun 2021 05:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624450895; cv=none; d=google.com; s=arc-20160816; b=dDAbmgR/zSrclRicq5I/J6DUktCFAaSiN/tk8BSxINhwKcWZUaQbULbiPC82fKWGl8 xmS6YJkFbOOE5p4jt6PAig/XFza3g6MYP81xrQj8Z5n2Jc1BCjN0AoncwjeDjGsoMr1G epXXvSTsGEjkPb3PrSjbie/qacgLw2JzRSNWNOE2XkG+uRjNuMCcFxl5sTUM6Qo8RN9b yH+68EK0sOIeNWAtfY3oTGoyZZfw2QXU0LWeJNQglsWWbiBpU8cuI7RExMobaHVJS2E0 HR8h5VlBYMzccSUg06fZdRI8SfdvS57oKV713D5whrjLxSGQY8NYaGB9Hz+xnz5kdl6/ zSOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=OucoS+maw5q3zXJrGPRmiNEygvl6UUcOhtyzVtWyy44=; b=S1xpz027Ut+gfkg/jssQnOrSQWzbtDT7GwUiIybfDg15d4MaouOK2XdBdGCifgtXRi pGN1vsBczYBzwXCiRZGKPKFtGpa5VlODIBm2X5V5JYd/lHyzyYMrE95zwmhJ1Zw1GjRX MO5foqi+hqb7uv9iP97zuaXlu5meOuaCwbRCyATeRwLM1mU7MGLy9RDaDQcZ9MyduA9S MGoN63CoPqm31awnX8v6z02t3I1g4cUrQjLzjFKXSFZAMp4ERdH+3VH3Bxm+Cdxdwsrc v1nhsRETYAC1HRVylZffrM/5MlN2InmKNFULuW1cQlXRN6ID+FxsUkkax22pQS70agMA KGVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc43si18909533ejc.241.2021.06.23.05.21.11; Wed, 23 Jun 2021 05:21:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230234AbhFWMWK (ORCPT + 99 others); Wed, 23 Jun 2021 08:22:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbhFWMWK (ORCPT ); Wed, 23 Jun 2021 08:22:10 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2179C061574 for ; Wed, 23 Jun 2021 05:19:52 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lw1r9-0005px-3E; Wed, 23 Jun 2021 14:19:47 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lw1r4-0008Rw-Dr; Wed, 23 Jun 2021 14:19:42 +0200 Date: Wed, 23 Jun 2021 14:19:42 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Kwon Tae-young Cc: Oleksij Rempel , Pengutronix Kernel Team , Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] i2c/imx: Fix some checkpatch warnings Message-ID: <20210623121942.n5vzur5rfazgjtd2@pengutronix.de> References: <20210623083643.395-1-tykwon@m2i.co.kr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6t4gwuuw3c4iudk7" Content-Disposition: inline In-Reply-To: <20210623083643.395-1-tykwon@m2i.co.kr> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6t4gwuuw3c4iudk7 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Wed, Jun 23, 2021 at 05:36:43PM +0900, Kwon Tae-young wrote: > @@ -1395,7 +1386,7 @@ static int i2c_imx_probe(struct platform_device *pd= ev) > platform_get_device_id(pdev)->driver_data; > =20 > /* Setup i2c_imx driver structure */ > - strlcpy(i2c_imx->adapter.name, pdev->name, sizeof(i2c_imx->adapter.name= )); > + strscpy(i2c_imx->adapter.name, pdev->name, sizeof(i2c_imx->adapter.name= )); TIL about strscpy. I'm not yet sure if I like it better than strlcpy in this case, but the usage is correct for sure. Reviewed-by: Uwe Kleine-K=F6nig > i2c_imx->adapter.owner =3D THIS_MODULE; > i2c_imx->adapter.algo =3D &i2c_imx_algo; > i2c_imx->adapter.dev.parent =3D &pdev->dev; > --=20 > 2.17.1 >=20 >=20 >=20 --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --6t4gwuuw3c4iudk7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmDTJtsACgkQwfwUeK3K 7AkcKAf+JNnmzhVNCCViCtR6HE2gW9q9uFgU0NcJUPhf33AZ34LmL2MqFEApXR5f iWxOkJd2zBV3VKevtDIYK7E8JhrvDNokENlXdL00DBx4GYgAOGCKecTzp7WzQkaG mqBk078/wklfKIjbSI/X8xxeuW8liulhQhVzVkgJpRUmWIACuWkyiV6bkAY9V0RY Q8dgt8KwmE2pqUOOK4m8RARKxRB1upqfZwOvBQi2zcMc7vRTXgIW/jOpmK6fO4PT C6Rfw53qzoO84rhhVwM1iYfE6JUOlemltFJKUW38HzK/NfDHglQptOBw21Fe9ENb 1DtxU4f00YwR95l+HVOdC8d8rw8KNw== =+yxd -----END PGP SIGNATURE----- --6t4gwuuw3c4iudk7--