Received: by 10.223.148.5 with SMTP id 5csp6540537wrq; Wed, 17 Jan 2018 15:13:33 -0800 (PST) X-Google-Smtp-Source: ACJfBouK45HtVgKLR8UiguFh2rKuDgsWpfKB2EoPp7ZVRYLUd3iTdEpn37xqw3Sr57wK/W9Xrt6m X-Received: by 10.84.218.194 with SMTP id g2mr29064062plm.147.1516230813639; Wed, 17 Jan 2018 15:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516230813; cv=none; d=google.com; s=arc-20160816; b=U3N89js3SV0IY/jTX19Zjs498gKjkObN4mf7SpJ2qIdtZVewiQTL1tPFnzeOZ+mAjJ i8ys0qN5JKdmSJE75RyLGMBTgvBb/YdfELN+HXT6ZhEfPaPA6g/Bpr6tw12fvIlxjgS6 4Tyl2lTUllfh73KCnthGLmuSrzJXIoCjRJL01mblR8nm1qvZWc26VIfU4ffDDgRc4HXE Iv7S9x3mC80FS1M6YKpn9ZrI9vOcrpdUL7y1d935RCo/rS2DrympQRjR/fO5QA7miVDI /1s5PtejKvG2dehX9vhwjCY0e8tHcQg0pXfWEo5KEzpsoBkGpd8B6o9UDQUP4G1rV7nD PluQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=4gbqrmr9q1f2XIr35DGq0iVQLaxy13jF+g7yhmtEUgA=; b=ItK1PkERp+E8f4oUr3E8M+XPOk+RfA1HwM9n64bguVQy5V7M8vUS2YjIJxllz2IYGZ U+yEwli8F1WH8zLjiOfLT5/FpheTigr/irDOIZcEOms7wVRJ6BBCrhWsYFGXWD09Qknw I1FWW8ixGg4o3BFAOg/NeLpew66tXl4dNL/RTEzwfEcdd6p0qvOsIaO6eAy4GRCiKxxd Fo5ujJIF08hJ6MQccG/aouxSb1cev0D52WT/6jlIEAJmZeoh7j2hFOve7+TW0rfSMQpz bxlEVWa08y702Xd+Her2tPej6hTPYYkTYs9cCkoEv0k1SVBRmVidVvRZpyHXGV+UAaTM XxKw== 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 f9si5068993pln.211.2018.01.17.15.13.19; Wed, 17 Jan 2018 15:13: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 S1754280AbeAQXMV (ORCPT + 99 others); Wed, 17 Jan 2018 18:12:21 -0500 Received: from sauhun.de ([88.99.104.3]:54039 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753268AbeAQXMU (ORCPT ); Wed, 17 Jan 2018 18:12:20 -0500 Received: from localhost (p54B33876.dip0.t-ipconnect.de [84.179.56.118]) by pokefinder.org (Postfix) with ESMTPSA id 9BB1A2C315F; Thu, 18 Jan 2018 00:12:18 +0100 (CET) Date: Thu, 18 Jan 2018 00:12:18 +0100 From: Wolfram Sang To: Julia Lawall Cc: Heiko Stuebner , kernel-janitors@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data Message-ID: <20180117231218.e3xa5vq4mg6b6kta@ninjato> References: <1514899688-27844-1-git-send-email-Julia.Lawall@lip6.fr> <1514899688-27844-8-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6ejd5npummacfocw" Content-Disposition: inline In-Reply-To: <1514899688-27844-8-git-send-email-Julia.Lawall@lip6.fr> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6ejd5npummacfocw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 02, 2018 at 02:28:03PM +0100, Julia Lawall wrote: > This driver creates a number of const structures that it stores in > the data field of an of_device_id array. >=20 > The data field of an of_device_id structure has type const void *, so > there is no need for a const-discarding cast when putting const values > into such a structure. >=20 > Furthermore, adding const to the declaration of the location that > receives a const value from such a field ensures that the compiler > will continue to check that the value is not modified. The > const-discarding cast on the extraction from the data field is thus > no longer needed. >=20 > Done using Coccinelle. >=20 > Signed-off-by: Julia Lawall >=20 Applied to for-next, thanks! --6ejd5npummacfocw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlpf2FIACgkQFA3kzBSg Kbbrdg//fpNwPY4hQ/GMvSiT+5PFjFzqtCxWALuyooPc2jsun9TL3RF8SE341817 jTZCDeEjn5HUJ0uWyl4vtso/Y7A8CYYTWVyT3nPYYNwFbz9Ct5OlcHWl0B2we3/J VowannkdPOUx2sif0KNzcDMTXTy/+21vW7T7VCN1O74xWd6TW2B4LCkShAThGaJk Yjsfu4OYvsC+R0B7Is3pM4pYOd+37scpV+x2ql6njxDjKHkaXID09tASaouh13cS Tv+zhrtYLqpow7Z6hCBc/Djs+tIc/gHxOnJhM+Vp3B33op3UAs+qQOKS+wm7Kgrl jtHnvJGLy7OJmZ5srDJGcBjutxmx+EWwUlhDQJUr4yy0D62n9yZCsx6IDtwa2iY4 AWlHft2so220vY+29w0pR6lXr2PxnDBNirOq5iY2gftrWAT6j+B5MtjYg5PoyxQV xYTOcO5XWev3/TaEs7BbGFAndmrPeB/AuNAWp6xdLRCLgjmqOSfQzWIWH4CFWOl+ G0LfD3L7BI8aU9wLhiAY/vL/bP+8Y5/oY0UnGpYB71/SDAwo4bx0GW34KdU5f30e bh8C9rfw4Ok85kCsVMbrqWTztbkg0uLXaU2TCadDoDVM+J2+xbBi2CVlITEPhBy+ kPNpgpVDXD3+wGKrirzw/qLHXI77911dIGv5oTh3dZE6z7Pitjo= =peoi -----END PGP SIGNATURE----- --6ejd5npummacfocw--