From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH 05/12] pinctrl: armada-37xx: account for const type of of_device_id.data Date: Wed, 3 Jan 2018 09:03:41 +0100 Message-ID: References: <1514899688-27844-1-git-send-email-Julia.Lawall@lip6.fr> <1514899688-27844-6-git-send-email-Julia.Lawall@lip6.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <1514899688-27844-6-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org To: Julia Lawall Cc: Jason Cooper , kernel-janitors@vger.kernel.org, Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Linux ARM , linux-gpio@vger.kernel.org, "linux-kernel@vger.kernel.org" List-Id: linux-gpio@vger.kernel.org On Tue, Jan 2, 2018 at 2:28 PM, Julia Lawall wrote: > 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. > > Done using Coccinelle. > > Signed-off-by: Julia Lawall Patch applied with Gregory's ACK. Yours, Linus Walleij