From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CE7B5EE82; Tue, 23 Jan 2024 01:46:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705974414; cv=none; b=hSwdKLYitE7kAsqUDav0C8IRt1V3WmTaDu4JEjdN0OtjL3ex1EYej/GLn84ywUyQaIlmFmuoUvsAenWigfw4Vwu6vyU+LRV8E4jfp+BjNmVP9AfrEMHWAO5FE1kcaoj/kWhljWWRNke3UMit1gTKeHvMVA1bfcmcgnAtzixM4cM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705974414; c=relaxed/simple; bh=BlcEGkVBDgRVYkeqJorkAlTA92mIMghhXCaoQoBUthc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S+cti1J+FHcnqpTX5D/qFWAz3aZzxTiaYC7OfLHpu6JclYdreXoZqKIMJngCMBoMZpR0xKEGl2lE6YnnBe6OHtQ/SQl5F8iwiVphvuCVfYlBqbZDDKldVLLeBrjFn42/w5AeDqGoCfx5MnilVkKXIGNVhzR8cza7YLAwjZqDhGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fyK96KmF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fyK96KmF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6F7BC433C7; Tue, 23 Jan 2024 01:46:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705974413; bh=BlcEGkVBDgRVYkeqJorkAlTA92mIMghhXCaoQoBUthc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fyK96KmF+QWoLriA+jzNbVL7QLrGWOeuG76fLzSr7q9KAmMyNnGYRAcd+zpQhxMHZ OdDoTERfFZgfevwg2ZNuZviq6kCxStteYGyyrPrgWUlX8u9nfuRY9JquG2780EwXLb pVHpMrSon6QlreBRs/zjzi2eIHtiiOZR+5sRQSRc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shubhrajyoti Datta , Stephen Boyd , Sasha Levin Subject: [PATCH 5.15 216/374] clk: zynqmp: make bestdiv unsigned Date: Mon, 22 Jan 2024 15:57:52 -0800 Message-ID: <20240122235752.161096242@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235744.598274724@linuxfoundation.org> References: <20240122235744.598274724@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shubhrajyoti Datta [ Upstream commit d3954b51b475c4848179cd90b24ac73684cdc76b ] Divisor is always positive make it u32 *. Also the arguments passed are currently of u32 pointers. Signed-off-by: Shubhrajyoti Datta Link: https://lore.kernel.org/r/20220818113153.14431-1-shubhrajyoti.datta@amd.com Signed-off-by: Stephen Boyd Stable-dep-of: 1fe15be1fb61 ("drivers: clk: zynqmp: update divider round rate logic") Signed-off-by: Sasha Levin --- drivers/clk/zynqmp/divider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/zynqmp/divider.c b/drivers/clk/zynqmp/divider.c index cb49281f9cf9..9e535d3e1c0c 100644 --- a/drivers/clk/zynqmp/divider.c +++ b/drivers/clk/zynqmp/divider.c @@ -113,7 +113,7 @@ static unsigned long zynqmp_clk_divider_recalc_rate(struct clk_hw *hw, static void zynqmp_get_divider2_val(struct clk_hw *hw, unsigned long rate, struct zynqmp_clk_divider *divider, - int *bestdiv) + u32 *bestdiv) { int div1; int div2; -- 2.43.0