From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753425Ab3KYX5U (ORCPT ); Mon, 25 Nov 2013 18:57:20 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:12740 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752070Ab3KYX5Q (ORCPT ); Mon, 25 Nov 2013 18:57:16 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Mon, 25 Nov 2013 15:53:58 -0800 Date: Mon, 25 Nov 2013 15:55:33 -0800 From: Paul Walmsley X-X-Sender: pwalmsley@tamien To: , CC: Mike Turquette , Russell King Subject: clk: clk_round_rate() should return 0, not negative numbers, upon error Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update the documentation for clk_round_rate() to state that it should return 0 rather than a negative error code when it encounters an error. This describes how the common clock framework currently works; howeever, some clock code does not yet align to this. This change is to prepare for returning unsigned values from clk_round_rate(). Signed-off-by: Paul Walmsley Cc: Mike Turquette Cc: Russell King --- Applies on v3.13-rc1. include/linux/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index 9a6d04524b1a..ffbbb7b2de43 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -228,7 +228,7 @@ void devm_clk_put(struct device *dev, struct clk *clk); * @clk: clock source * @rate: desired clock rate in Hz * - * Returns rounded clock rate in Hz, or negative errno. + * Returns rounded clock rate in Hz, or 0 upon error. */ long clk_round_rate(struct clk *clk, unsigned long rate);