Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751728AbeACH72 (ORCPT + 1 other); Wed, 3 Jan 2018 02:59:28 -0500 Received: from mail-io0-f176.google.com ([209.85.223.176]:45635 "EHLO mail-io0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305AbeACH71 (ORCPT ); Wed, 3 Jan 2018 02:59:27 -0500 X-Google-Smtp-Source: ACJfBovtGJkBRDgGFIRGMBe+Mxy16ZKtRJ7+CS0vmWHaxoelKFrX82b7gXc/R1F4Wg5feEbitBLoqoXjRmdYOYiMeKM= MIME-Version: 1.0 In-Reply-To: <1514899688-27844-9-git-send-email-Julia.Lawall@lip6.fr> References: <1514899688-27844-1-git-send-email-Julia.Lawall@lip6.fr> <1514899688-27844-9-git-send-email-Julia.Lawall@lip6.fr> From: Linus Walleij Date: Wed, 3 Jan 2018 08:59:26 +0100 Message-ID: Subject: Re: [PATCH 08/12] pinctrl: axp209: account for const type of of_device_id.data To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Chen-Yu Tsai , linux-gpio@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Jan 2, 2018 at 2:28 PM, Julia Lawall wrote: > The return value of of_device_get_match_data has type const void *. > The desc field of the pctl structure also has a const type, so there > is no need for the const-discarding cast between them. > > Done using Coccinelle. > > Signed-off-by: Julia Lawall Patch applied. Yours, Linus Walleij