Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5929589ybp; Tue, 15 Oct 2019 07:10:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVgRhX/oE0Miq+gm+bmj5YX97Uo/fz2fGOzuKwbd6S62Ry1aBkGx2VLWywLiGyfi2s6ZCl X-Received: by 2002:a17:907:10dc:: with SMTP id rv28mr34145948ejb.7.1571148624728; Tue, 15 Oct 2019 07:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571148624; cv=none; d=google.com; s=arc-20160816; b=BdFihk7MJ9BJgshdqDn/V9tkvg7tJRr9d60LTxxc3U5KTm//E7eUZCEc6xfqfTu1DE mKeU4WRHyyYi2yfb059dRxZKuUYYStJFG217dG2nF14SLY1Zp8sljKCT/au3t0cQYCpd kXC/IeWtIQ5POBV+0kfKL5RZcBg6thGAoahaT8hCP+XIRcHxFp6NJWuYLb+D9a3wIW03 deziZl7isFbO1BlKIrPFAEAZ0huOfIDbSYNNV2cSG+yBC2LyOkaRv/h1Bm3AuEx9PKTE Zdhgja0uNzabVpU1D2Y8BsgN264C3NNbhD8TZsK0mAkTJkF++JARozI14I7U+FRsRALo udPA== 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=knlSNVko9j2mHBhYtrinM+/t9+zMBZDeTdCVG/etQHs=; b=NspscLTd4BGZbeIba0O+iIL5bYxAy1LngeGB9tJF1WFRgnrdI8ZJjZQUAxjxDgOtyU MGaNVGcE62IaLUCU8oEm1X6fOM6m8PXTho6ZvO7WtN0EbhhfPv8X6BkAnUFVHAiz8LSj K2INFBhIYosRJPMjGfy3YCzWrRUIKps0DJLVASGyF0ps7E66Ps2fhjhM6MnOnKD2yMaN aB3gwPV/4FWn4Afy0oRvexZtKDJzMuCFep/TEh99Xtveez9hn+f71mKl8DFzVxGa9CSd x4dIdtbba7vrfGxTdtQQdjL1l6amcxfVeF9IQIy+HixLBtxfdarpQwBrq93NroqjNqRd QxHw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9si16676451eda.229.2019.10.15.07.10.00; Tue, 15 Oct 2019 07:10:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732435AbfJOOJS (ORCPT + 99 others); Tue, 15 Oct 2019 10:09:18 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:49386 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730697AbfJOOJR (ORCPT ); Tue, 15 Oct 2019 10:09:17 -0400 Received: from [167.98.27.226] (helo=rainbowdash.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iKNVe-0004HK-Un; Tue, 15 Oct 2019 15:09:11 +0100 Received: from ben by rainbowdash.codethink.co.uk with local (Exim 4.92.2) (envelope-from ) id 1iKNVe-0000DJ-8u; Tue, 15 Oct 2019 15:09:10 +0100 From: Ben Dooks To: linux-kernel@lists.codethink.co.uk Cc: Ben Dooks , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] soc: imx: gpc: fix initialiser format Date: Tue, 15 Oct 2019 15:09:09 +0100 Message-Id: <20191015140909.778-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make the initialiers in imx_gpc_domains C99 format to fix the following sparse warnings: drivers/soc/imx/gpc.c:252:30: warning: obsolete array initializer, use C99 syntax drivers/soc/imx/gpc.c:258:29: warning: obsolete array initializer, use C99 syntax drivers/soc/imx/gpc.c:269:34: warning: obsolete array initializer, use C99 syntax drivers/soc/imx/gpc.c:278:30: warning: obsolete array initializer, use C99 syntax Signed-off-by: Ben Dooks --- Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/soc/imx/gpc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c index d9231bd3c691..98b9d9a902ae 100644 --- a/drivers/soc/imx/gpc.c +++ b/drivers/soc/imx/gpc.c @@ -249,13 +249,13 @@ static struct genpd_power_state imx6_pm_domain_pu_state = { }; static struct imx_pm_domain imx_gpc_domains[] = { - [GPC_PGC_DOMAIN_ARM] { + [GPC_PGC_DOMAIN_ARM] = { .base = { .name = "ARM", .flags = GENPD_FLAG_ALWAYS_ON, }, }, - [GPC_PGC_DOMAIN_PU] { + [GPC_PGC_DOMAIN_PU] = { .base = { .name = "PU", .power_off = imx6_pm_domain_power_off, @@ -266,7 +266,7 @@ static struct imx_pm_domain imx_gpc_domains[] = { .reg_offs = 0x260, .cntr_pdn_bit = 0, }, - [GPC_PGC_DOMAIN_DISPLAY] { + [GPC_PGC_DOMAIN_DISPLAY] = { .base = { .name = "DISPLAY", .power_off = imx6_pm_domain_power_off, @@ -275,7 +275,7 @@ static struct imx_pm_domain imx_gpc_domains[] = { .reg_offs = 0x240, .cntr_pdn_bit = 4, }, - [GPC_PGC_DOMAIN_PCI] { + [GPC_PGC_DOMAIN_PCI] = { .base = { .name = "PCI", .power_off = imx6_pm_domain_power_off, -- 2.23.0