Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3257984pxb; Mon, 24 Jan 2022 06:04:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzn5VU1Ax74+JR5fjo8/Lt4/KXxCBL10Eo2BiQvUm/0nt3n1W0RcmGGZsaPSbrO1KSeDK46 X-Received: by 2002:a17:902:c144:b0:14b:7f:b23b with SMTP id 4-20020a170902c14400b0014b007fb23bmr14712900plj.86.1643033041742; Mon, 24 Jan 2022 06:04:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643033041; cv=none; d=google.com; s=arc-20160816; b=xBiwI2ehfIYjRKzBz43eBVVoEqo4RgJopNqe/8QRwhh4W5P7YCSYsGYLNkLzyowWvC wqWwbXII0cghsrCMVjCRFuu4z/KFNYpSGQ+mp++DWApAEl0bu7oGjbGsYXVmGg8ksCCv OoFBhbt7yDqjBsj2bF/t+8qNDkTPcoAYIopkAlLxBbYPq+LW4vTorPz3tSUTltj1oUov xeXQx4Q1XUT2VpxPrJ8YlDp44ny0i0kuOgNFdaJboStzgyKnJMF6Gov2sEmPdoCTFyf/ GIzYP4cmsEsR9QKJudgPH7De8FxCVW32fnykmrE613wpJEIIjOs94qQ9EV773aMpd8vq Ehbg== 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=bCNGUDQSGH9xNCol2x80NKTo+CZUhhFOnPlnY5tZ8U4=; b=wsFd7srAUtAl3G/7OEZf90bqbhU+2bst5FJY82FhAGt0M75Ok9cezUEhOr2wDEVgzx a/FkrxcgiFPFGuzwIZRphXOrYXRE0jBJUX42f9flmLmpCnzXVtdR3FXCgB8g+saHK4ah lHpzIK4PXufq/7XO4MR1L0G9DwB1wkpMHaEdCXZGiGDRGkQSogKtFBwLJNf3F2dCI6VY buUp0s4IRDqjM+ZHVwJrg54VfAhKVWs2Hsi8CQtbATcszkizvWGQ0EIywFkYhNqBvOBQ 9YdBuA0jHZjy7UjoatNW4VpRng+0rolChChzoUVT2YMpvHZ4lrPVuRxybNnWTs55pNtd n1hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O09zGu4Y; 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 x15si5749865pfd.329.2022.01.24.06.03.49; Mon, 24 Jan 2022 06:04:01 -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=20210112 header.b=O09zGu4Y; 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 S240342AbiAWWeV (ORCPT + 99 others); Sun, 23 Jan 2022 17:34:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbiAWWeU (ORCPT ); Sun, 23 Jan 2022 17:34:20 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90BB6C06173B; Sun, 23 Jan 2022 14:34:20 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id v123so21735039wme.2; Sun, 23 Jan 2022 14:34:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bCNGUDQSGH9xNCol2x80NKTo+CZUhhFOnPlnY5tZ8U4=; b=O09zGu4YJvsZVDLdpbYBixQ9Q01D+m8PO80S2oO7EimAj6T8/ojDty/tqx7VEUDCQ4 jlvqs9r4XBLOcVpl3E5m9krBnI9BuNHo3bAImqInXEBy5U/OGmVeUI2mToceOsuDXVm0 oqSyIZEvnAWKCznuOu0lZb010kmzxZvaFwJp2hoNgAf/Z9U1uEnxqeSeRy85U6c+qn43 D7xa2Wgu+oZ15PYhD+qZc+TM2NILKNEUod7Al4ZRX+JRLv3rvFtSm2XaxfOfh//vLotG MrMQXAu+21B8dbu79Tf2kaAIBEH4p+/k+E5si5Ql9yBPa+mPakV16OyJtObAVqfZJjYE m+oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bCNGUDQSGH9xNCol2x80NKTo+CZUhhFOnPlnY5tZ8U4=; b=NnxjLOQSvoJRdvxH0gjCXsC/EaYxpo4yZwJkwXw7BezFLN+KwYCiwynHm/FbqIfylL Bb/Y25geJVcySfjlcFM7i1OSLnFW4IW4Cl6BFhlwvWOvw9M8Oi6CRUICf4jEO2V0nYnz sBgubsPHqUduzI0tRj/9Q9AEaaRRbeSxK3UOW8mtljpfJJ1pWO2FsA59TWlLmU3gdb68 WlWX+4BKpQdASANMLCRBTQzrcM947Z0thda9XGJY+1scbyjo2jM7XesM5L6B5ydCocze uo6F9UGYWUC6LFps5UVxDrMlct2UAkBR/kQKKnMcFzVBK5YUIVche0dE2zTWPfMER1SC FotA== X-Gm-Message-State: AOAM530ljGFbJpdFEuq7tdigik00xMoKLbIxY+LCfTsJteNdZQ67SVrA adcbo8NkXIfXABVuYFlkk5E= X-Received: by 2002:a1c:256:: with SMTP id 83mr9487342wmc.166.1642977258810; Sun, 23 Jan 2022 14:34:18 -0800 (PST) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id o5sm17681375wmq.21.2022.01.23.14.34.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 14:34:18 -0800 (PST) From: Colin Ian King To: Philipp Zabel , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/imx: make static read-only array channel_offsets const Date: Sun, 23 Jan 2022 22:34:17 +0000 Message-Id: <20220123223417.6244-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The static array channel_offsets is read-only so it make sense to make it const. Signed-off-by: Colin Ian King --- drivers/gpu/ipu-v3/ipu-dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-dc.c b/drivers/gpu/ipu-v3/ipu-dc.c index ca96b235491a..b038a6d7307b 100644 --- a/drivers/gpu/ipu-v3/ipu-dc.c +++ b/drivers/gpu/ipu-v3/ipu-dc.c @@ -344,8 +344,9 @@ int ipu_dc_init(struct ipu_soc *ipu, struct device *dev, unsigned long base, unsigned long template_base) { struct ipu_dc_priv *priv; - static int channel_offsets[] = { 0, 0x1c, 0x38, 0x54, 0x58, 0x5c, - 0x78, 0, 0x94, 0xb4}; + static const int channel_offsets[] = { + 0, 0x1c, 0x38, 0x54, 0x58, 0x5c, 0x78, 0, 0x94, 0xb4 + }; int i; priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); -- 2.33.1