Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2182622iof; Tue, 7 Jun 2022 22:26:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX5eyNcVzfu5/du1TyLmm2mcaTXjChIhZYrT2R7TB/Idm1rOdmEEQHYCdmos+Pa8fdr+VW X-Received: by 2002:a17:903:32c1:b0:166:3f58:c1b3 with SMTP id i1-20020a17090332c100b001663f58c1b3mr31236770plr.108.1654665993868; Tue, 07 Jun 2022 22:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665993; cv=none; d=google.com; s=arc-20160816; b=Ie47G3RNE69kAqQ5bTR+CisI2jBWmvke/sIVz7k2MEURfyFJHqM8WzwmJEZKrzbHNb tWFRYdsFQzoob70itn8t+UwUaF4E+oyALrPS0DB0YJPbzzX9An1FGcsF7p7WEPvY0AzV N4stiXkiVKder6Bp2BT4Onhnx/0e/vWZguRcntJhGvRQImxev+SbwiNrh6KpcauYHnpL U1Cxb/i/sZ8qbFmCWawTyTpOEqT1BNhK0Qa2cCi1qPSWjbXvnSYEWgb1NSAUKqTyzfVk XuImFW8oJxn1CsAnUxdhkkqb8qDaEKwjWsuXSwaRvH1VwDTNZrKzVcy+pEVc92z4eK5v nmJw== 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=oknLiOiD5VJ9ZGZlIcaUaQqYl1qgRncBqy1ln0wS9xs=; b=D7ogb3o7uTXEfkKbDLAY2Wf5INe1Lta9H/f62HjQfxV89md6GAW/diHEVZunu/HBiS Vn9zTCGBagd2b3Rm02q0QTibjq17piqN9LFX3gFpVaCLwLQfynug90INUz8WkHhomtCy oYaQbIwipPkzNmj0MIaevsaN26hYMJF9HmS+5qXc4PDGkkgOHcq3HhqQ0B1s23ytwjf/ k0xtd+/s9KY6HC+AUzu4wQu3LtR2ptbtaAYKfbHBQVrZpPa6KaIKNMHr6cCg0Uirpkwl hZ8V1fbaK3iQtYegG96ns6DPITQYvWLXeSZrA6WVsFvv4uzruSFvWVvPnv+nPqaT83GP V3Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IJzlMOMR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id ix11-20020a170902f80b00b00161f3928b89si21453649plb.100.2022.06.07.22.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:26:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IJzlMOMR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 C73B547974E; Tue, 7 Jun 2022 21:53:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378722AbiFGVWX (ORCPT + 99 others); Tue, 7 Jun 2022 17:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376587AbiFGU1C (ORCPT ); Tue, 7 Jun 2022 16:27:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC8D71B7832; Tue, 7 Jun 2022 11:32:55 -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 dfw.source.kernel.org (Postfix) with ESMTPS id ABCE4612EC; Tue, 7 Jun 2022 18:32:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0DBCC34115; Tue, 7 Jun 2022 18:32:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654626774; bh=eRb1IsnbktKayJ3HyDwY3GnvB4R+VD34n1nZmYxBRWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IJzlMOMRyQrCdSCfVxJhJGimsK1eZPJMRjKs20Khq/bZi7I6Ra4eB+XFOfejIURYR ngWVFX9F4mK+71pKxHgtgk8/WtHnWwb6khxVQPVhfw3cF3chIjya+YTL9IxYy96tKU ojq5oID3umh8ZOsce4WP86OfLeA3RkwZ68NSMk/E= 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.17 472/772] can: xilinx_can: mark bit timing constants as const Date: Tue, 7 Jun 2022 19:01:04 +0200 Message-Id: <20220607165002.904756885@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164948.980838585@linuxfoundation.org> References: <20220607164948.980838585@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 1674b561c9a2..f3b149b60465 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