From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CF09C4743D for ; Wed, 9 Jun 2021 01:45:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EFA0261182 for ; Wed, 9 Jun 2021 01:45:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EFA0261182 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EAtS9g864HGb0aY3Igtyy6EdJO1NapYIhY56FVEIrWQ=; b=1LCAOPrO8Dm7cl XD+A87ifSBM0pOY7Ri9nTPCpAHny9vHlMSGVuyBBcbZXWzio3ckX9NydS42NFH5nKphB7ScinYvPH fVT6r0RV3mT1kIUUDzr+koGFG+Bp+o9LNNUl2RHuwD7yiuN4KSiOjQi8Ufn7PevJa6YgpsWqpHIt/ T/ZeL7fkAFWRmtY3RWMhU2rf0+Zntx2gRaByJD12JPnwtgPrnmUq3zm7UOqzwjVT9Vx0h67QSi/1k 2vHH81enWSVv7J/UZofLCdv1N8GD1GVgsqnQeOdfrhTxSNlQMx3lAW5JP0kW8GVKD0SVW4NBikCcm GLRe6Y21RAdkhv9SnM8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqnD3-00BC8s-KM; Wed, 09 Jun 2021 01:40:46 +0000 Received: from mail-pl1-f170.google.com ([209.85.214.170]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqn5s-00B93L-Bf for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 01:33:21 +0000 Received: by mail-pl1-f170.google.com with SMTP id h12so331930plf.4 for ; Tue, 08 Jun 2021 18:33:20 -0700 (PDT) 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=rzSSFM9eA7D/nASKgieKIKXoM9U+od0SIxRVo0RKwbs=; b=T37gis28MP075rqTyRhAlrTWtsa3kDZQh1r47qcKH0NNEVSompkKpN5d7z8GDHGHqz VlzszmEKm7FtBv5XEJH6XDp+8+BIkZl9JCTA/fGHu1WoypHkO74bmkZTclWCEZBtW9yZ RTN3tIBQXoILSRugZw5mxdymx8R0xy0U4naAciR4tfkPoTv3MC07yhkHoM9ISpDKs1Zj b79JYllFGL0YAt8EiQHH8IrZSiVflGpAvEUehWNlEgSu8pP0tkSDXz5LGr5kHL9L3cqf j9195/L44+nURGJQoYjms3Rp9Uiqd1IVCETmsf/WEUSFnzOYR5HQOXmnHvoexyiSpXPF QHUQ== 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=rzSSFM9eA7D/nASKgieKIKXoM9U+od0SIxRVo0RKwbs=; b=IgFdgFteSipV3ssydokY1cvaybK9rRATmknszF8MV6YrAWuSPe51kYxPCPgW8A3S1F xbNeBPATk/55UPIDDb8aPfi68rHm7Lx2Cy76cJyR2eKE5Siey8OQ10AjmYGBmIjQ7TdI lRXIWKTCyEqtGD3lkhc6BmQNO41gu6j+VGV/7+lWom/OKRQFm2Dg84GGr2Wc39QaeUp4 KRUCzekaldsBzMlK+Rf4CKuKSZHSCS0bUauSTVBjSzOSKlVZKH5IQfV3i4h8eP/e7Ccf yN9FEi1GWQCybU417Z31nT68Lw2iSnnhdExXcHNSA4FnmNzIuOuHLwn/93ljBfcBw5gm KA8g== X-Gm-Message-State: AOAM531JjxhEG2P09Kmpswi638AJ//ndvSbbjOsS8fNuGkfkFVCNqK71 t/BCh2v6tcAaLGLnRHxrRG8= X-Google-Smtp-Source: ABdhPJzHx8m37RAm6th5rtYK4N+44f3lBAKH9sGXux1cR9nBP9hDBHSt90KBliON8+mHPJtsukB/tw== X-Received: by 2002:a17:90a:e541:: with SMTP id ei1mr28850129pjb.189.1623202339993; Tue, 08 Jun 2021 18:32:19 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id v14sm12659815pgl.86.2021.06.08.18.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 18:32:19 -0700 (PDT) From: William Breathitt Gray To: jic23@kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com, kernel@pengutronix.de, 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, jarkko.nikula@linux.intel.com, William Breathitt Gray Subject: [PATCH v11 06/33] counter: 104-quad-8: Add const qualifiers for quad8_preset_register_set Date: Wed, 9 Jun 2021 10:31:09 +0900 Message-Id: <050f1b518eeae8e3683f7d6d11f3219a137adf48.1623201081.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210608_183320_441215_2EB15280 X-CRM114-Status: GOOD ( 12.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add some safety by qualifying the quad8_preset_register_set() function parameters as const. Acked-by: 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.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel