From patchwork Mon Mar 4 19:42:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159574 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4140728jad; Mon, 4 Mar 2019 11:42:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzqMIoS7oABfazaMS13zwEdTSBMoitEKjtrWiZrtlnX3khbM7A29xnmivFZGZeI8WkadZdZ X-Received: by 2002:a17:902:aa90:: with SMTP id d16mr4883654plr.250.1551728571683; Mon, 04 Mar 2019 11:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551728571; cv=none; d=google.com; s=arc-20160816; b=iPYyc6EqR7UMeI+5ly4AL1NLzicxofkfMUCH9VHm4FHKyBqSwlq2TYfPMi3i3TYjvo v0gs545xTKRLb/yEPLhL919LZ7Hu2DqZ7kNAA4P00JlRUR4LDnld5jz3sLUuGenu/lDv tcY98pv0HqxCix8yVx47y18ga4doXmd3faWJJGWmynCut0StZGiIvU2VhooJq+GS4Lv8 m7CKqC8pUSBhjO7ci46n9K7fHHJyci6d/apkz3HEPgU+tTFNAWqKYk3ujjmR4O7yn3Gg g7a2QBmbqK/ZBeioTRKhUE11dYb+xDdNMVUvz0zSEfpasBE6gneY1ELNLrINZEfRzk11 J/vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=p614nb8FwFOClOCwhMThBOA5R4lerMuYBwXWh092C94=; b=mgMsHbTzd9VYKm4UwfDFCndRsUKS+9PV0v/0tPK2YDqTJYHuDDo8KkuGUV9/SzPZTq UysfZVARzLolmgiqNkhrQk93mK50QkoqIP/0V6vB3FsW3jqO06+1LbCPzaGTKuOiaIX7 9HIKUiKPcPlw2OHSERvzCSXGMAj4krCj7+ui4yUNhJP5TJjo5mR4b0ZW9PS6hCCf2XDl oBmN57+KlLOSRetfjjxEMk6spwIt08pxwSg1dTKVu7g/6fJ6CtgCpzoQ4Z1cs4nRUjvI 2U44f39bR+toCD94c2pb9u3zSwNb6A84b9DsEqVk5rOXHmg9u4w37melcGsz55mxJPsE JIcQ== 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 cm10si6783437plb.295.2019.03.04.11.42.51; Mon, 04 Mar 2019 11:42:51 -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 S1726210AbfCDTmu (ORCPT + 31 others); Mon, 4 Mar 2019 14:42:50 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:59785 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbfCDTmt (ORCPT ); Mon, 4 Mar 2019 14:42:49 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1MNssA-1gcbKn06Po-00OJ3Q; Mon, 04 Mar 2019 20:42:45 +0100 From: Arnd Bergmann To: Jens Frederich , Daniel Drake , Jon Nettleton , Greg Kroah-Hartman Cc: Arnd Bergmann , Nishad Kamdar , Arkadiusz Lis , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: olpc_dcon_xo_1: add missing 'const' qualifier Date: Mon, 4 Mar 2019 20:42:33 +0100 Message-Id: <20190304194242.765398-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:hljR4sdyJUx4vNa+ntMtgyJdjAcguRe4HCStNxo1+nOJWUUVvWa Yg9OaVWzFBdVurt9NwSQKojq4T3JHxKIrJo3+YQB74RXNs+kVtHdshn+SqgugraDNK7tjTe eCk1MuzL7GtA2ufU56sT7dhzkKgSJvlg0EqQlCtuu0tkRtUPC52jaC2DHyd5lBFmWMmVnV4 oDAig/pIKuu7jh9DBdosg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:UxsNdDdXSms=:0PGjOnMUXOw5K3gSbrlWm/ Pc59LlZsAkIlfD+tCJ3GAZz5soNCKy2p84AkC7jGMYw6F/O8C8vr7NxEVQJ7E+ZewszfaZgQs ks/s+WNus9TL8N6Sbtm4WB+dnjHC106RYj6v53ST9Bg3CUTmJ6hmx1y9J5Un6W3JHIxIiUzcR kfuOSaUH89PbVqH2zoRKGxMUeNIuygGfP7JRt4c/G1Yk1F4/R+0kcnVNKJ9m4+sphv7BinDsV gFM+b4ob0T9bx3JoEab3clb9dEzcvwOxPNP0AppH98CMpnvkdaP/Pj7WH3g6jLPCm7fR8R6cV NXVhmv4ExC5qqaAAMvxPDPKUNQUXWVNuZVLbAgqwSu/MRHiBx/Du3+XYdt1fnh+ayCzZDtcaF B99bV0hLlVCBH5D0PSjWbmMDetvMgue3/Fdf5LPYrfZG0+Za34jvk76y8No+V5/VseSgI04sJ rIH+AnAsmknwTjYqDJILwMq/7PzxDgxIZLUFMlsI9pyAlKwn1x8cB1qwkLnE3qwKjCRgcgLH9 V5Ihn8b3WIKkdF4YOl9m5Tojb3XNIz4VtRU07TPJQid0xPzEmIXTSiGIGpUgVeEBU+Xdb85BU uOWsSHhuz0ezABDInQ+CJWqrB7GLSBlPGj2xPTI9ZvH9SP/DOA+NSjqywcsfIeqet2EijHfz1 2lqR310zr7vsvw1N+OgdXtPNV0m7lOuk3v6y49WPVP78q1NeIKTdKt9aXiQa2VkqMxZQcg7uE Mh+cRzo8FaPPbNP8Q2xPVf8mvWkEWbksvIz65Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gcc noticed a mismatch between the type qualifiers after a recent cleanup: drivers/staging/olpc_dcon/olpc_dcon_xo_1.c: In function 'dcon_init_xo_1': drivers/staging/olpc_dcon/olpc_dcon_xo_1.c:48:26: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] Add the 'const' keyword that should have been there all along. Fixes: 2159fb372929 ("staging: olpc_dcon: olpc_dcon_xo_1.c: Switch to the gpio descriptor interface") Signed-off-by: Arnd Bergmann --- drivers/staging/olpc_dcon/olpc_dcon_xo_1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/staging/olpc_dcon/olpc_dcon_xo_1.c b/drivers/staging/olpc_dcon/olpc_dcon_xo_1.c index 80b8d4153414..a54286498a47 100644 --- a/drivers/staging/olpc_dcon/olpc_dcon_xo_1.c +++ b/drivers/staging/olpc_dcon/olpc_dcon_xo_1.c @@ -45,7 +45,7 @@ static int dcon_init_xo_1(struct dcon_priv *dcon) { unsigned char lob; int ret, i; - struct dcon_gpio *pin = &gpios_asis[0]; + const struct dcon_gpio *pin = &gpios_asis[0]; for (i = 0; i < ARRAY_SIZE(gpios_asis); i++) { gpios[i] = devm_gpiod_get(&dcon->client->dev, pin[i].name,