From patchwork Fri Jun 9 10:20:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 103458 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp136362qgd; Fri, 9 Jun 2017 03:22:16 -0700 (PDT) X-Received: by 10.99.122.92 with SMTP id j28mr27905278pgn.13.1497003736009; Fri, 09 Jun 2017 03:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497003736; cv=none; d=google.com; s=arc-20160816; b=lhmOzhY2Mt72KHLe73dtNYY7ssXz2u3fuLZGBkhlI57zRfMqfs8Joiw3rDo47oGBs/ yEjgOUMvB5rlIEZKk2qpxTbpWr2pb8MXkDeljHB43MQgE+Enf4gDt8K8FsDtrGdDV2FY p2XkcTBnC2tDlspoea7LnM4ocieplL0h1uowlw9wmVG418xOBMQy49q5RoMhhli2XyJy +TtPuZBsaSlhFIvojZFMQ0UPmd5tm3tC++U2RVeF5e6I30xmXJZYrxG+Oc8Wphisjxsl krqPGNUPsBhFM/MsJuFXdzC49OYYOrJh7tu1vqmTcqC7MfDzgeFZIkqF2FqYga29ntFf JgEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3lVCmHaV2d1VxGydxa+6/n8v2B780tt3vB3Fbvjj+I4=; b=y52Fa8In5Ol8kxPNGTf9fRPfIsVWGLGBl0ENyZmgOH43Ge+9mt8v25/f0Guety5rUU c6xz5kWNWUtM4+wX5Vohq6zew72QxIckeJ7bKnkA5hWmhd999xvPYm1mj+FjROupb+OX qNd05vWQb8Gm8Gr8xSUW1jJUmYkRnV8Kp1OC9ny+zqIywD8bH/kZ77KBOggycdqD4S20 1tpYAytsnKpkWlD0d86HNP7vlnLMnzT9k/7wWLq8PxLt3FDAMnHL/+E+eS8FfPzpYk9q FLKSxAaWoDF8o9uwBOF3iGrH71XwBUgiINLNw/HUMi+rMAXX7ZPBDnvY3Z+KCX411yQl szOg== 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 n6si648104pla.123.2017.06.09.03.22.15; Fri, 09 Jun 2017 03:22:15 -0700 (PDT) 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 S1751623AbdFIKWI (ORCPT + 25 others); Fri, 9 Jun 2017 06:22:08 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:53779 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527AbdFIKWG (ORCPT ); Fri, 9 Jun 2017 06:22:06 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lnopk-1dm05Y10J6-00g4OB; Fri, 09 Jun 2017 12:21:36 +0200 From: Arnd Bergmann To: Kevin Hilman Cc: Arnd Bergmann , Bartosz Golaszewski , Mauro Carvalho Chehab , "Lad, Prabhakar" , Axel Haslam , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: davinci: don't mark vpif_input structures as 'const' Date: Fri, 9 Jun 2017 12:20:27 +0200 Message-Id: <20170609102131.2836298-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:c6Y0LrTRXc/NWOFL3G7wvBmURtgmRbZSidWaZ/4BMq1x/rR33W9 a3DxHflw4OCtZo1zPOenp5AoL0f4I6lOSpGJNOamUXwP68dFVD7IfKSbrWJWruCz9wXyjXv T1tPm9KoGkLs88FWHCOU12MX7CsD6nALkJWQ5p+KOlph4c6zSa+eDgtAcQJtqLSvYdDieWS KHSm49UFpVadPGUS7YcqA== X-UI-Out-Filterresults: notjunk:1; V01:K0:ncE+n0RA9sg=:K6pCmk9RZTHHUwUwO8Mn3A Gt83xQPCixqfjqSaPpnATZgIfajceHrXy1jbdtGbtpkHlXwYnGFnLq2AmrbD2ISumEDbH8141 5QMbPScvhQcMvoZNfQRGIP0olAK2pboHBYOiogtWzPURU9H9FcANsZOkJYCzNoYjIzfj6tsCz fEBm7sXYB3uHhjbJKk8xenzPwTVYZOPiz8UyI/tFL0dCmvv8gp5ES2lcwCdCE0b0BeFIQbYAg oCNfQE2uWwv8KFy9MHUWJmFylXFHTJNlLlSkDepag5cPCKr60VwdHek5NVE4qva7zzEc3vFwK 4400JwJlP9dYHIDKFGMy+BjnMrFHc8o1ZreyAyYKcBFGC155h48yrZiqgzGeEJRzoIcbwCQNN fLo3pl1Kbv9G/I7gr3lvZglkIjOqd90VCzNwoPY1Gow865MYVO14NonAFo9hinfrWFR0fA6X9 jy89Fz5lQnUZedsMCukeIe4VQDRhTa6QPVCYg5PT5bsG67GVhlRFK9kmT8IedMUmKvsi9UzbF n0ofUHhRrEjNZPkLP/8cic8cD/kWGqTu5Bx33/NW8nOjNl/dS9bPuYPopDqM9N3W6qDjkzlIM a0xQlsfG1FXu52wuCnXLq2wN5UvgPqLgObSpYuWFn0KPJL7KVFnvrrbw3FJ3pn8vqgJiJ9VY9 Brd6bSNEr8XFpNE7B4HsBoqKoIZRWLAvowbZM7w9U+7GRzoUuuMGsENblOtyIu5hyjqY= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A change to the platform data definitions caused a warning in the board code: arch/arm/mach-davinci/board-dm646x-evm.c:680:13: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] arch/arm/mach-davinci/board-dm646x-evm.c:690:13: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] This is a bit unfortunate, since we generally like structure definitions to be const, but as this is legacy code, the easiest way out is still to remove the 'const' annotation here. Fixes: 4a5f8ae50b66 ("[media] davinci: vpif_capture: get subdevs from DT when available") Signed-off-by: Arnd Bergmann --- arch/arm/mach-davinci/board-da850-evm.c | 4 ++-- arch/arm/mach-davinci/board-dm646x-evm.c | 4 ++-- arch/arm/mach-davinci/pdata-quirks.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) -- 2.9.0 diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index b5625d009288..e568c8c6f69c 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -1166,7 +1166,7 @@ static struct tvp514x_platform_data tvp5146_pdata = { #define TVP514X_STD_ALL (V4L2_STD_NTSC | V4L2_STD_PAL) -static const struct vpif_input da850_ch0_inputs[] = { +static struct vpif_input da850_ch0_inputs[] = { { .input = { .index = 0, @@ -1181,7 +1181,7 @@ static const struct vpif_input da850_ch0_inputs[] = { }, }; -static const struct vpif_input da850_ch1_inputs[] = { +static struct vpif_input da850_ch1_inputs[] = { { .input = { .index = 0, diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c index ca69d0b96a4f..1d76e7480a42 100644 --- a/arch/arm/mach-davinci/board-dm646x-evm.c +++ b/arch/arm/mach-davinci/board-dm646x-evm.c @@ -641,7 +641,7 @@ static struct vpif_subdev_info vpif_capture_sdev_info[] = { }, }; -static const struct vpif_input dm6467_ch0_inputs[] = { +static struct vpif_input dm6467_ch0_inputs[] = { { .input = { .index = 0, @@ -656,7 +656,7 @@ static const struct vpif_input dm6467_ch0_inputs[] = { }, }; -static const struct vpif_input dm6467_ch1_inputs[] = { +static struct vpif_input dm6467_ch1_inputs[] = { { .input = { .index = 0, diff --git a/arch/arm/mach-davinci/pdata-quirks.c b/arch/arm/mach-davinci/pdata-quirks.c index 329f5402ad1d..4858b1cdf31b 100644 --- a/arch/arm/mach-davinci/pdata-quirks.c +++ b/arch/arm/mach-davinci/pdata-quirks.c @@ -33,7 +33,7 @@ static struct tvp514x_platform_data tvp5146_pdata = { #define TVP514X_STD_ALL (V4L2_STD_NTSC | V4L2_STD_PAL) -static const struct vpif_input da850_ch0_inputs[] = { +static struct vpif_input da850_ch0_inputs[] = { { .input = { .index = 0, @@ -48,7 +48,7 @@ static const struct vpif_input da850_ch0_inputs[] = { }, }; -static const struct vpif_input da850_ch1_inputs[] = { +static struct vpif_input da850_ch1_inputs[] = { { .input = { .index = 0,