Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2543247pxb; Tue, 9 Mar 2021 05:22:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyznm8edEKETrCHoVa0OzCOdSCBcSYpQairH+BVXIDXF24Pgjx0fNScYG47wdNAypCI+Rgg X-Received: by 2002:a17:906:bd2:: with SMTP id y18mr20548798ejg.482.1615296142698; Tue, 09 Mar 2021 05:22:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615296142; cv=none; d=google.com; s=arc-20160816; b=Q9ydIVc8MUgEG/MFdYofTwdmhwh4u2UX92f8dInveSnbSAPVkpzA4zDuR2aYAjqHE9 DDpHJWPCYZYrPsCKnvoOeB2deVL3/G1NElHDBQdCNnm9ZIdYNMV3OyhjKeI/8HDHzJEJ Rx2rQpaZgtil72pgF0bHNqrrclyk5eTy06/ho2c1GOZ7Kxftd2jAcs5Vh7/FQwg7zGiX CupqkqLgsS/1uHEFycfTCyLh2FCRIOE7zocpZwvhPA/lsYDB/UDSKhJYGABWkOajQl3b DeFfPW3uKxyjDxxpilMNKumM14/OgpLVDEVsY+5La2az00AdRQ2aQCk//ymqtbCsca5X G0Xg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jNbuVcZgloeyR2LVzHohVrUsgceqLUUAvFiu7EZYLL4=; b=XIy3u3nIKOfVcBTvFaXKj57XvZU1BkSlWvuBR8GmKexTtPjMBlCT9lAfWpX2QbzTwn OljaYGn3LasmbCsKTaGN9FOA9PWOlIZ8Gvmfh8tmyNIgvt8cYyHVclOTAI5OPhVepIM9 lEDmG5Niyc5yIeK+SLf1/xWY3+mQ+qYKXqewVaPpGJRrHjCw88yFPFZLPNHFoeDToyei +vcpAu4sMDz0/yXsSD8G5reKVdRNZchBvYJEz2I0L9dg3FGiOtWUJEQ6y6PT7dHFLWgB V7EmA2mwDnIErFD3zKR/cC1Gbso6qxEgGc8O7xOU1NdTLs1yvd78aKYiMWlFCZ+90NGB gRvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="OiDLg/jN"; 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 y25si9004946edm.396.2021.03.09.05.21.59; Tue, 09 Mar 2021 05:22:22 -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="OiDLg/jN"; 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 S231253AbhCINVC (ORCPT + 99 others); Tue, 9 Mar 2021 08:21:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbhCINUm (ORCPT ); Tue, 9 Mar 2021 08:20:42 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6F05C06174A; Tue, 9 Mar 2021 05:20:42 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id fu20so886473pjb.2; Tue, 09 Mar 2021 05:20:42 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=jNbuVcZgloeyR2LVzHohVrUsgceqLUUAvFiu7EZYLL4=; b=OiDLg/jNmamc1mtL3gaPFwjt7jTKbMZ+aqomYModCj29Z1bpZ82+RHODdUZKFDVcfR z9p7UcTX5W5PpVCGnqmRT/MQB+mR1h31g0syjgDDZRIVLGMBI/1OJmfQOTwsKF0GQ8jx 2bYh9ALrtmpTRmnyABFOEuVjb2fDvLPI418tYkQmF0qzu7vR5vNvHnWp4FD8scgEkixV 8slgACiMoWoTxY4dm9l1tNn9lFZh8a7vjL/FfW/XcbnPzLoxEF7cgFphI1RKH6tSNTPi KpovAM357vJ5wm8k+24tqNJw6aZqevtzJF4hVMK4EcErGsX9t/GFhttmAtlZpVG+sahZ gMBw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jNbuVcZgloeyR2LVzHohVrUsgceqLUUAvFiu7EZYLL4=; b=DpGVqGyqZRMQpzbiir2FgLUtx2YWEOoNXWpHqFmFcqFIzrjoq6v10eNM0s6uDbWtLU Tp4BUhxUfyRuYPnNZL6AqDIzOeatRmPKib4aGayOolr3IrqUsey9971Xz0tlbWzme7Q0 AXvR0uaXNz4u5vQAAIeXHNEZmagnkFfRaKHMOHEfXgAVpNAadQvZJGcyOEG5VHvF8YYp tWF8OziTKTMpvPQpPAZv4PU6m7whsQ5puijzIGtZPnJXLYhk8QwMgl3C5ehv/vi1Aklh V7Ae+yldpNpg5bYEvh0y0DwLuPej/EgEoK7GGeahoGHCCHyVG+gXDvLuYdVKXTgEkSgd zXkA== X-Gm-Message-State: AOAM530SsjtdCYPU0x5VZyoCewuJVk/XiSHEmNkGui2VpSq5pps/VD2J s6sFeqWAKLQe/w4dtIaWNxw= X-Received: by 2002:a17:90a:a63:: with SMTP id o90mr4795577pjo.90.1615296042338; Tue, 09 Mar 2021 05:20:42 -0800 (PST) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id y9sm7647421pfl.201.2021.03.09.05.20.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 05:20:41 -0800 (PST) From: William Breathitt Gray To: jic23@kernel.org Cc: kernel@pengutronix.de, linux-stm32@st-md-mailman.stormreply.com, a.fatoum@pengutronix.de, kamel.bouhara@bootlin.com, gwendal@chromium.org, alexandre.belloni@bootlin.com, david@lechnology.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, syednwaris@gmail.com, patrick.havelange@essensium.com, fabrice.gasnier@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, o.rempel@pengutronix.de, William Breathitt Gray Subject: [PATCH v9 06/33] counter: 104-quad-8: Add const qualifiers for quad8_preset_register_set Date: Tue, 9 Mar 2021 22:19:19 +0900 Message-Id: <67c6b42f44015b24eeb8136b2efda28aa41cd055.1615293276.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add some safety by qualifying the quad8_preset_register_set() function parameters as const. Cc: Syed Nayyar Waris Signed-off-by: William Breathitt Gray --- drivers/counter/104-quad-8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/counter/104-quad-8.c b/drivers/counter/104-quad-8.c index 0fd61cc82d30..51fba8cf9c2a 100644 --- a/drivers/counter/104-quad-8.c +++ b/drivers/counter/104-quad-8.c @@ -632,8 +632,8 @@ static ssize_t quad8_count_preset_read(struct counter_device *counter, return sprintf(buf, "%u\n", priv->preset[count->id]); } -static void quad8_preset_register_set(struct quad8 *priv, int id, - unsigned int preset) +static void quad8_preset_register_set(struct quad8 *const priv, const int id, + const unsigned int preset) { const unsigned int base_offset = priv->base + 2 * id; int i; -- 2.30.1