Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp520892pxb; Wed, 18 Nov 2020 10:11:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/aEzasFsAKElqPa0gl0CrgK5jxRXAqC/dEOjhnuvuAHY96RzE6gsryJLbczMNp81uzZqN X-Received: by 2002:a17:906:1411:: with SMTP id p17mr26056523ejc.102.1605723116275; Wed, 18 Nov 2020 10:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605723116; cv=none; d=google.com; s=arc-20160816; b=DrddSEIK9PlIl8YGJe0WoYQxH8kJAGDri87EXzUtQFuaqrzXXGkRshhy+WQreO1LNT 7caGeNwI7RU+rucXJdRUGxd72Wa6ptLhVr5jtwzjKLexgf3RKNV1DA3gl1MGpOJxL5NY fBDYMQHR+2OG0kUENluOnP+qz1LdvCOLYPJIICOScSc3KwpvRTRWNG4827G085p+86OT OTQw4ywEkZo4C5vxQfo4Ys/Kin+okwU7+bx4ZBZ5Yq62Gfk8d6b/q03Kv5X/ha9uwSGv W/Zf2b8nxnwrJcZcYj4GMSIAuwVbiafjnkjelVwfUoL5dMTXoNKFGu7dSt+2jXSzgUDL dO7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pxELOt6GfZS0tNdRK6kX1TfQriizca3PB6DRDDt/oRE=; b=lsAiuzmfw9R6UkYt0ltnqcnQlGGbjpN5D05la6lM8TW/99mRni0Vxc8r3EhTsKtP2k H9c7DDGGzQbrlsuYgmVe1khaqMEs4dBmdw097ip8X6Vr8F12WIbtb0Y7UbDvOLGX4wx8 adhWxp249ezJksgJRATK67Cu3ySNM9xhxiaKYbQkMyOYzZBSdTSiN2/GvZUahgDHFka9 Koi/14p5tt7N6j4D7NWlUlCz0ZuLhMkAfSFq6MWLskDGpopmRfeNQGzWcpP6OuGemEGH y9nWuba2rzcJy/jpRMN5O6Wb7vsYJslvOKf8srmih0n5E5KdoFZx3umayN6Smtr85Pse 0+LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ARZ/DpQW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p21si16239796ejx.516.2020.11.18.10.11.32; Wed, 18 Nov 2020 10:11:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ARZ/DpQW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726433AbgKRSKF (ORCPT + 99 others); Wed, 18 Nov 2020 13:10:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbgKRSKF (ORCPT ); Wed, 18 Nov 2020 13:10:05 -0500 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE4AFC0613D4; Wed, 18 Nov 2020 10:10:04 -0800 (PST) Received: by mail-ej1-x644.google.com with SMTP id y17so4034786ejh.11; Wed, 18 Nov 2020 10:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pxELOt6GfZS0tNdRK6kX1TfQriizca3PB6DRDDt/oRE=; b=ARZ/DpQWE3vHp4KvYJiP0MPbTy8gGHTlVEzX8Q2sAyqbiwomX5JR9e0+Xq8P4ALeA9 Cj/SbWXr3SfCCp3F8suHbL8HOtlkYdZg3yjtBG+YwlDvmzvXOaBdSjFvYGsrT7mRRDpW 5uWclLo253shnOYvG7CD+UoEZ4eYKBwbZkgM257FpKwKvQxGJE21Rtq3Y8kYDp7mULvW SE99GdqcrfE2VFsSk7FhxfDZSz2xgfbL+uL1U2SqbZB0AA4QlYm9EVbB1J5UqA07WoRz +m47a+WerueTtR3wePnIEzsIaJa5bK9ekZ/VFrKaown7lSa+iL6bGwoaNRIdOea43meB dbbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pxELOt6GfZS0tNdRK6kX1TfQriizca3PB6DRDDt/oRE=; b=hMwO1lj4qNpKCgLkJGDDmNgYQiMc6SMkaYN6Jm7EK2TC6rHJTTaMHrCh50TselbcVZ jh5k2W76RR5AjZSXVKzPTUpKTBYMmf+GaUHvCuawYLSQXnZbTQdsH/KJ65pLq4X2Pd+H mG4qFNWkvpW1RZ+vnMslw0HjAHDJbBIHYVCNwMnOUKTdkNKzJfN3EIqCV8OWLcBj1biN wQFFCvVlEWKNW795M/XtJWTLiJAW1D43hBudHnzlZjaksaUXpBgNQ1D8aKL7E22eAeXA sDXyFKqEH5EeUiXbPb3TccRcydjVA9NxWL91w1gZH/nIgReMHGrCHKOQ4veirE/2KK7D XZAQ== X-Gm-Message-State: AOAM531HKlz6HexINDbcjJ0e7X9Qay5NfqvKvpAIuHV6RsNwd1JMO3z6 7D8IBXHrARViGft37NwjlcThr+GH7qovVw== X-Received: by 2002:a17:906:ca83:: with SMTP id js3mr26018362ejb.42.1605723003484; Wed, 18 Nov 2020 10:10:03 -0800 (PST) Received: from localhost.localdomain ([188.24.159.61]) by smtp.gmail.com with ESMTPSA id dk8sm1483425ejb.88.2020.11.18.10.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 10:10:02 -0800 (PST) From: Cristian Ciocaltea To: =?UTF-8?q?Andreas=20F=C3=A4rber?= , Manivannan Sadhasivam , Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org Subject: [PATCH 1/1] pinctrl: actions: pinctrl-s500: Constify s500_padinfo[] Date: Wed, 18 Nov 2020 20:10:00 +0200 Message-Id: <24505deb08d050eb4ce38f186f4037d7541ea217.1605722628.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org s500_padinfo[] is never modified and should be made 'const' to allow the compiler to optimize code generation, i.e. put it in the text section instead of the data section. Before: text data bss dec hex filename 12503 5088 0 17591 44b7 drivers/pinctrl/actions/pinctrl-s500.o After: text data bss dec hex filename 14435 3156 0 17591 44b7 drivers/pinctrl/actions/pinctrl-s500.o Signed-off-by: Cristian Ciocaltea --- drivers/pinctrl/actions/pinctrl-s500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/actions/pinctrl-s500.c b/drivers/pinctrl/actions/pinctrl-s500.c index 38e30914af6e..ced778079b76 100644 --- a/drivers/pinctrl/actions/pinctrl-s500.c +++ b/drivers/pinctrl/actions/pinctrl-s500.c @@ -1485,7 +1485,7 @@ static PAD_PULLCTL_CONF(DNAND_D6, 2, 2, 1); static PAD_PULLCTL_CONF(DNAND_D7, 2, 2, 1); /* Pad info table */ -static struct owl_padinfo s500_padinfo[NUM_PADS] = { +static const struct owl_padinfo s500_padinfo[NUM_PADS] = { [DNAND_DQS] = PAD_INFO_PULLCTL(DNAND_DQS), [DNAND_DQSN] = PAD_INFO_PULLCTL(DNAND_DQSN), [ETH_TXD0] = PAD_INFO_ST(ETH_TXD0), -- 2.29.2