From patchwork Fri Feb 18 00:09:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12750786 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 87104C433EF for ; Fri, 18 Feb 2022 00:11:30 +0000 (UTC) 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=2Bi6hUtZnC7W6rjjcYBwpTECRtzj8W2M2SBRr38Kep4=; b=tz58vBMLBe4ZTh DVsPxvQ51Tfb0EWwfdLpjWkHZJir/Yz7sgaBkBTllxMGeYjdVEd1KWOeVLZQ25H4et17LuWsBm+Jf cmXAcp/YH4Ju96SUe+O78vQN78oDDtJHWEysqJkp/QA1zpGUwzCqP/Z0WQEsxqLHJxLomK0EH4Iak FyAa6WV2qEpuVWsYJ1ZjWJBCv0UpCU0GAvFjAc5GHhYfXkyslVk3MSrqhC9WBLxD3suuwBeC3Sa7G 6Qkvc9WQ2kwuebgUHZZdUIr/41vHkUkdqODrwc/wXvYwy3L4VysIFkNUOdgx/ZIijFsE6Xf5JFz7R iTrCY+pfsOrZuoS4beQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKqqe-00CXm7-Sv; Fri, 18 Feb 2022 00:10:09 +0000 Received: from mout.gmx.net ([212.227.15.15]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKqqF-00CXZs-LD for linux-arm-kernel@lists.infradead.org; Fri, 18 Feb 2022 00:09:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645142977; bh=7eGr16EtJu7MHLlCPbPNeHBHVZGOv0ozkH98DlInLXw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=khDLPcAf3NBw68tmUPBH41pcl2uhT2BDYGuhWrV3Asmr6/+YIUYzSUISO6Iio+/mb j+G1lNDHNMSetPdDZsCDGfYmsH5N6KddY7lMJeAzGQFte80ERQgfseiaVHwGOU9yS8 rtQRVtWOOE2h8pqnZdmpkCD3MbqhVew7s1tMX4AA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M9FjR-1nNtW21w0t-006Khf; Fri, 18 Feb 2022 01:09:37 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Jonath?= =?utf-8?q?an_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , Alexander Shiyan , Mike Turquette , Arnd Bergmann Subject: [PATCH v4 4/5] clk: clps711x: Terminate clk_div_table with sentinel element Date: Fri, 18 Feb 2022 01:09:20 +0100 Message-Id: <20220218000922.134857-5-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220218000922.134857-1-j.neuschaefer@gmx.net> References: <20220218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sOBakyH/ar4CLIWaXXw4U/y5OFltMI9kJpG0dv70W99K+weG/zEPB6RoSrO80xJ wfXZ0mNwycS3Eo/e0pYVb2ExFrD3FKXCVT1/ouoTmRH/cizHpArgh4MYX1NzMc3K78sNNtKVD Jx8SeJLV9cRbkgpyzDEmu0KUu7z6gTsD6Z/EVbV2iaDUV5YSCQKFP6gwDnok694hBlCWxKKkO GVRANSaP8fiNOVKgbG68GuUt9thqbueaSs/CXHUNtPh/dH1uLhF7wvkRyAhs1lUwQbtUo6lZX cbDZwjn0fio7so5XKEE2GUyLXJ31zMkPW/TRBRxmv4FDAfs4fXA5F94AA3ywEV5ZQ8vEwWpaN 0YEeZhK+Dx2TCE= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220217_160944_011943_B5FF1AE5 X-CRM114-Status: GOOD ( 12.03 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order that the end of a clk_div_table can be detected, it must be terminated with a sentinel element (.div = 0). Fixes: 631c53478973d ("clk: Add CLPS711X clk driver") Signed-off-by: Jonathan Neuschäfer --- v4: - Change style to { /* sentinel */ } v3: - no changes v2: - Add Fixes tag --- drivers/clk/clk-clps711x.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.34.1 diff --git a/drivers/clk/clk-clps711x.c b/drivers/clk/clk-clps711x.c index a2c6486ef1708..f8417ee2961aa 100644 --- a/drivers/clk/clk-clps711x.c +++ b/drivers/clk/clk-clps711x.c @@ -28,11 +28,13 @@ static const struct clk_div_table spi_div_table[] = { { .val = 1, .div = 8, }, { .val = 2, .div = 2, }, { .val = 3, .div = 1, }, + { /* sentinel */ } }; static const struct clk_div_table timer_div_table[] = { { .val = 0, .div = 256, }, { .val = 1, .div = 1, }, + { /* sentinel */ } }; struct clps711x_clk {