Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1008672pxb; Wed, 6 Apr 2022 06:36:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCoJRQaGNlFkx7zqCIjgwaDRoxy0OgJJwyrEU/GAXZkY5Tz2Q9X+0GXcl6KAcgceTmDCo+ X-Received: by 2002:a62:1c8d:0:b0:4fa:8dcb:6da2 with SMTP id c135-20020a621c8d000000b004fa8dcb6da2mr8646356pfc.19.1649252188768; Wed, 06 Apr 2022 06:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649252188; cv=none; d=google.com; s=arc-20160816; b=cyi1ozC1uAOuPm62zYVTmewg/bbe3LTFcikLFKM1zX7lndDgpbuxjm1q4M2ZSfzdqq 3ngFPNDKxL4hKr4WoCAXAB49fkK6hUB7qsYUc4V0J5tI53SnP6RTB6VOforgFc56YNRB USX/N3TmRUqk+kFQLx/5KNAI4xInGRQuERiTNz3Y/Q/3nuJQTAwJALidDzJHp0f1RaR6 o1tZS03vpaVa1xLJFiYyBAHgmpUh63uXutq/AzQ5kHwtQPnBsBjjPA5Kg25TvWrNwUky Nb13/AQXcsoFxQkcOt66tGSLMqg+8P/fNKeqmw2i8pUWK314KU94ZTvemZVurWov3xzI F3zQ== 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=1zwvUiH9/lSc9GabF9xvbbYmtJl/FxnrbasRPMGHTqo=; b=u3JdjFnceWmL9GNJChcAl98Z7sY8YGvh3NdDG6Qd4Erg5VtuJq1PG9P5zIH1WwlyPF h9y+Wktv+gWhW2gny1avxpAUz/FbkLQnAW1nZUhBV2sI8ecNECCerrSWJ6mddffMmQ/0 wSIahJ8xRYwp+JjWwPJLrCIXUMTg8qI55lqfKK5tdhaY45wnO7/5LefGeF29GF4wc6A9 9Ny/yQe42uukIqN1sWzflF+bB1Aiafjj0ptV+//EcSrwleSq4Vsh+9PHd1XP7l1mZZCQ b5eRD7GTNADx2VG5b6Gg7Ucvnh1HUq8RFaJW2pM1jtuKCNe+d6+T2RvtwUXXptXq6pFS E/jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b+HKeB8+; 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 w65-20020a628244000000b004fabe29f82bsi14410406pfd.316.2022.04.06.06.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:36:28 -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=b+HKeB8+; 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 2B8245489B1; Wed, 6 Apr 2022 04:19:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1838215AbiDFAum (ORCPT + 99 others); Tue, 5 Apr 2022 20:50:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349620AbiDEJui (ORCPT ); Tue, 5 Apr 2022 05:50:38 -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 72734DCF; Tue, 5 Apr 2022 02:48:38 -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 0E789615E3; Tue, 5 Apr 2022 09:48:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E430C385A2; Tue, 5 Apr 2022 09:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152117; bh=3A6/wr4Ruqir6XPiFN7OjrQqY55f8efY1tUO+dql6NQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b+HKeB8+DJ4Afqy7UN0ygX/EUcE8h6l58o/aEkFCoGn5R1gmqjdS6ubXVsvwpcBmV SnXVlrGXjdEglDXP6z/6bueWIxCqUAb3owCMzFzd7E6xoqXQCU1ohMvoGzfW1mGOZ8 LWNTmXq0u+fZSHNssWTaQz/EBL282UHVg7/PLFYQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Stephen Boyd , Sasha Levin Subject: [PATCH 5.15 622/913] clk: clps711x: Terminate clk_div_table with sentinel element Date: Tue, 5 Apr 2022 09:28:04 +0200 Message-Id: <20220405070358.484596010@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 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=no 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: Jonathan Neuschäfer [ Upstream commit 8bed4ed5aa3431085d9d27afc35d684856460eda ] 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 Link: https://lore.kernel.org/r/20220218000922.134857-5-j.neuschaefer@gmx.net Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/clk-clps711x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/clk-clps711x.c b/drivers/clk/clk-clps711x.c index a2c6486ef170..f8417ee2961a 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 { -- 2.34.1