Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3330932imu; Sun, 11 Nov 2018 12:32:02 -0800 (PST) X-Google-Smtp-Source: AJdET5fIWgb8zSTq59ElW4EfTGU7lpGhMGFrUE4frM5QdGswHEvrjJWZf20XOZ/IV0VfryLUXKOe X-Received: by 2002:a63:4706:: with SMTP id u6mr14307127pga.95.1541968322165; Sun, 11 Nov 2018 12:32:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968322; cv=none; d=google.com; s=arc-20160816; b=T8aOUDSK869V4PozqKTznrv0BdmKYmTm18HrunVhfVIhcw4PvU3RAZVe/NgllpaopZ wQtgA+F5b1Bkzvq2/BOafjxDjZzcXVwKZy5l89L3iwGVH1NnYOUCaV5O9BSyalcW7Ko5 PRrj6LyWFXsSX2ne4SwI0u6dLlVWijm9+3MLLxeNIOjsUaJwCB1bZN6xcjypWnmlJ6nw ZV+X4wvjq4YivXxHaV9X60yfQCW077RtFYehV++4c6TMczKAA/4RSOyJ8hs8wyqMzjTk VuapxLXNHTeFHksnSbrvBC9Ik5zu4snyqdnyAdMam5ROPjOTTbtfTadyzzowR1PBB01t xkDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=uRqM67Mxptx8WA6Vo/3nMZy7LqzKVcEZX+zfIYJloIc=; b=MI6sdWszU37KTduZiWo5J4eOQo5FFNlL19uaCItpDrtDjm5qzlVg7R+8mA7O74j85v nTEPn+amTTZp3mUD+7mcCLkMw31Zet0hqd5HafgH4sc901xLvS+Vl0i3DQvdNGjCgN38 xmz4IG+602l0ec8OLb+j12G8qgbJol41m6/CJocGvdg4C/thTaKXzpuge/H1Pvu2LlSR iFGQadSX8Au7eLCP1rEjpeSPopTA1fvlnfCvj6aNdQ9bIHxlb1rnPKY7PZs3QXDnqPms ffJ9mcLf9MiipT4N73Oe42bsibkrDP+ykoYYYEZeZN8G8F3X4lmX7CLjXvYC0mKQC2+/ 96qw== 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 u1-v6si15514611plb.313.2018.11.11.12.31.47; Sun, 11 Nov 2018 12:32:02 -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 S1730851AbeKLGTg (ORCPT + 99 others); Mon, 12 Nov 2018 01:19:36 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:50474 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730424AbeKLFsV (ORCPT ); Mon, 12 Nov 2018 00:48:21 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsh-0000l5-BV; Sun, 11 Nov 2018 19:58:51 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsa-0001rh-A7; Sun, 11 Nov 2018 19:58:44 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Max Filippov" , "Stephen Boyd" , "Krzysztof Kozlowski" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 342/366] clk: si5351: Constify clock names and struct regmap_config In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski commit 8234caed27f7bce141c9fb1f7e76c91a2a66d248 upstream. The regmap_config struct may be const because it is not modified by the driver and regmap_init() accepts pointer to const. Replace doubled const in the arrays of clock names with proper const pointer to const data. This fixes the warnings: drivers/clk/clk-si5351.c:71:25: warning: duplicate const drivers/clk/clk-si5351.c:74:25: warning: duplicate const drivers/clk/clk-si5351.c:77:25: warning: duplicate const drivers/clk/clk-si5351.c:80:25: warning: duplicate const Signed-off-by: Krzysztof Kozlowski Reviewed-by: Max Filippov Signed-off-by: Stephen Boyd Signed-off-by: Ben Hutchings --- drivers/clk/clk-si5351.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/drivers/clk/clk-si5351.c +++ b/drivers/clk/clk-si5351.c @@ -68,16 +68,16 @@ struct si5351_driver_data { struct si5351_hw_data *clkout; }; -static const char const *si5351_input_names[] = { +static const char * const si5351_input_names[] = { "xtal", "clkin" }; -static const char const *si5351_pll_names[] = { +static const char * const si5351_pll_names[] = { "plla", "pllb", "vxco" }; -static const char const *si5351_msynth_names[] = { +static const char * const si5351_msynth_names[] = { "ms0", "ms1", "ms2", "ms3", "ms4", "ms5", "ms6", "ms7" }; -static const char const *si5351_clkout_names[] = { +static const char * const si5351_clkout_names[] = { "clk0", "clk1", "clk2", "clk3", "clk4", "clk5", "clk6", "clk7" }; @@ -207,7 +207,7 @@ static bool si5351_regmap_is_writeable(s return true; } -static struct regmap_config si5351_regmap_config = { +static const struct regmap_config si5351_regmap_config = { .reg_bits = 8, .val_bits = 8, .cache_type = REGCACHE_RBTREE,