Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752813AbeAQLA0 (ORCPT + 1 other); Wed, 17 Jan 2018 06:00:26 -0500 Received: from gloria.sntech.de ([95.129.55.99]:57680 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642AbeAQLAY (ORCPT ); Wed, 17 Jan 2018 06:00:24 -0500 From: Heiko Stuebner To: Wolfram Sang Cc: Julia Lawall , 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 Date: Wed, 17 Jan 2018 12:00:01 +0100 Message-ID: <9191715.Ndy7U9z6f6@phil> User-Agent: KMail/5.2.3 (Linux/4.13.0-1-amd64; KDE/5.37.0; x86_64; ; ) In-Reply-To: <20180115182456.zkx2ehdlxzrc2scu@ninjato> References: <1514899688-27844-1-git-send-email-Julia.Lawall@lip6.fr> <1514899688-27844-8-git-send-email-Julia.Lawall@lip6.fr> <20180115182456.zkx2ehdlxzrc2scu@ninjato> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Am Montag, 15. Januar 2018, 19:24:56 CET schrieb Wolfram Sang: > 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. > > > > 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. > > > > 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. > > > > Done using Coccinelle. > > > > Signed-off-by: Julia Lawall > > Heiko, you okay with the patch? Looks good to me and does not seem to contain any changes related to actual functionality, so Reviewed-by: Heiko Stuebner