From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE5E5C43381 for ; Mon, 18 Mar 2019 07:00:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 93F032083D for ; Mon, 18 Mar 2019 07:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552892420; bh=N+/Nh5T8kKfaxhKQIT+RbFVCIMLQnzCr9tEbzvfLbno=; h=Subject:To:From:Date:List-ID:From; b=n4+U05lBaavncaTm4pdF+KhHLNKtTl4V8FjlK/dA349gz9uPZ+dCSdaLmkWUINwOJ kMVJaL9wIlIrv3ptYU5yh7xU8LDYMTgL6a1KwGrS+/DB/Ts8a1oVsJB4KCGzD6xTVG 6QW2Lepme0BHbDOFUbGLmvklopfpxeffx2+RakPg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbfCRHAU (ORCPT ); Mon, 18 Mar 2019 03:00:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:44700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbfCRHAU (ORCPT ); Mon, 18 Mar 2019 03:00:20 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 067E72077B; Mon, 18 Mar 2019 07:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552892419; bh=N+/Nh5T8kKfaxhKQIT+RbFVCIMLQnzCr9tEbzvfLbno=; h=Subject:To:From:Date:From; b=YWIlrK38UHrI8WeA2TEp8vH5ACORdt5ipXfxjTe5ruGDNToAOuwKIT/Ol7mi2Swpq XOfmxdo2Ps7Al0Oq3xkwrRbMFJkbyyDQQ+mfCtJa6wQjFwJ2Y9z7oQ9eW9Ko67V4b2 2V2myTHeGYqxFBSgQxnLtKlkXq/eiZSUJ3KnxBEI= Subject: patch "staging: olpc_dcon_xo_1: add missing 'const' qualifier" added to staging-linus To: arnd@arndb.de, gregkh@linuxfoundation.org, stable@vger.kernel.org From: Date: Mon, 18 Mar 2019 08:00:02 +0100 Message-ID: <1552892402251143@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org This is a note to let you know that I've just added the patch titled staging: olpc_dcon_xo_1: add missing 'const' qualifier to my staging git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git in the staging-linus branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will hopefully also be merged in Linus's tree for the next -rc kernel release. If you have any questions about this process, please let me know. >From ae0a6d2017f733781dcc938a471ccc2d05f9bee6 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Mon, 4 Mar 2019 20:42:33 +0100 Subject: staging: olpc_dcon_xo_1: add missing 'const' qualifier 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/staging/olpc_dcon/olpc_dcon_xo_1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.21.0