Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2171898iof; Tue, 7 Jun 2022 22:07:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY8Wbse1ClFc/HOKH48fLTzblUsYou5Q543Pr72N5fb6Gdzcagm7s19n4sY9u8Y5rUhmv2 X-Received: by 2002:a17:90a:1b61:b0:1e2:c247:bf5e with SMTP id q88-20020a17090a1b6100b001e2c247bf5emr36039428pjq.68.1654664829623; Tue, 07 Jun 2022 22:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664829; cv=none; d=google.com; s=arc-20160816; b=w7tw9HfrhEp6mi25gYTaeAX7J3pmq51LgQSMXCaRBEPoPyBtI4++Ky1WgcMMgPF3pX V/MH4Yf9lHg+v7/oXDhOKY+8dwo7xhBxb6+yDGBz8cLXQO7zsOleCwpiEWk48KwvCGTB DZJ+3n1FArDLo2vzYNakPDe79NUMGcNkFLlL8pna6heQQmKrpnAfbe3habl+gQGEWs6B yMtJfA8C/aDJ6sdSc1Vyth/VDiHO9rBqg4tExVU4CHETBznaJuy/i/fdQrr23OJ7uN+l vWsXt7mFb+murWsEOZdo2LCl8OYRvGsVQvRgj/mAwulxd7CQpKkTPghpclzSDurt/Zdz wAeQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NBGa0UlJO6qHp0Ak+ChLayEjEPQtWGGUfI0ANp1mci4=; b=MGCQnBMPUdpU3/Pl8ogXkkDBte1Vg3YTXpOYUxOxHmNkhu1CQi/6NVCKkoKhldDABw 4g2b6edhrh1WS0x2X6ME/Cp+PHVb1u+6CaDlb2BbKXdisnlQJEgsfg0lqQcs6GxJoUSq +/YE3fh/2MkO/S6c78JyTk+Y8bb5AhnjwY5VkTG9yHj6boHzGriDtEV75c3dGi5kmSZo XUSe1alWsiZS+mzfZ6mPNy+s4l7+Ym66gmgQHc7lq8JkWJDum1k+0S5BOdMugdxnLDAC b1TkorwO9CezxSzPpupoOYKI2msrgxZ7zj19vBjYKBpxGoA6Z672FKuZRGdamMUGOh0h 7fwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="t/JS70GK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y74-20020a62644d000000b0050d4265128dsi24145956pfb.313.2022.06.07.22.07.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:07:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="t/JS70GK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 711C93B7E70; Tue, 7 Jun 2022 21:36:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350086AbiFGRvw (ORCPT + 99 others); Tue, 7 Jun 2022 13:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347610AbiFGRf1 (ORCPT ); Tue, 7 Jun 2022 13:35:27 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F6D2DED4; Tue, 7 Jun 2022 10:30:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 2FF53CE23D0; Tue, 7 Jun 2022 17:30:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FBE3C385A5; Tue, 7 Jun 2022 17:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623041; bh=G+VmD+Gd+6D+I0VXQN+nuqorCTGsJh90QPeQSS1lKOo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t/JS70GK3Ar+KTYVye2sQPWN2kd8LXbdvSu3mECJ11EoRs4HgcAKUVLF+Qm/mz7fx smoz6SkxJ/qtU5YQ6K/0B82eTQzz7VNO3IX6PgyLyuXJqFoR3fq1RNSr/VuV8YP8kh 2Y2MZo/Ia4UvyMxOiaYIPilvAeDXABCBIpsWkvvY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Appana Durga Kedareswara rao , Naga Sureshkumar Relli , Marc Kleine-Budde , Sasha Levin Subject: [PATCH 5.10 273/452] can: xilinx_can: mark bit timing constants as const Date: Tue, 7 Jun 2022 19:02:10 +0200 Message-Id: <20220607164916.685878302@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marc Kleine-Budde [ Upstream commit ae38fda02996d43d9fb09f16e81e0008704dd524 ] This patch marks the bit timing constants as const. Fixes: c223da689324 ("can: xilinx_can: Add support for CANFD FD frames") Link: https://lore.kernel.org/all/20220317203119.792552-1-mkl@pengutronix.de Cc: Appana Durga Kedareswara rao Cc: Naga Sureshkumar Relli Signed-off-by: Marc Kleine-Budde Signed-off-by: Sasha Levin --- drivers/net/can/xilinx_can.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c index 375998263af7..1c42417810fc 100644 --- a/drivers/net/can/xilinx_can.c +++ b/drivers/net/can/xilinx_can.c @@ -239,7 +239,7 @@ static const struct can_bittiming_const xcan_bittiming_const_canfd = { }; /* AXI CANFD Data Bittiming constants as per AXI CANFD 1.0 specs */ -static struct can_bittiming_const xcan_data_bittiming_const_canfd = { +static const struct can_bittiming_const xcan_data_bittiming_const_canfd = { .name = DRIVER_NAME, .tseg1_min = 1, .tseg1_max = 16, @@ -265,7 +265,7 @@ static const struct can_bittiming_const xcan_bittiming_const_canfd2 = { }; /* AXI CANFD 2.0 Data Bittiming constants as per AXI CANFD 2.0 spec */ -static struct can_bittiming_const xcan_data_bittiming_const_canfd2 = { +static const struct can_bittiming_const xcan_data_bittiming_const_canfd2 = { .name = DRIVER_NAME, .tseg1_min = 1, .tseg1_max = 32, -- 2.35.1