From mboxrd@z Thu Jan 1 00:00:00 1970 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 9CBCBC001DC for ; Sat, 22 Jul 2023 17:07:21 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id CFCF21FE; Sat, 22 Jul 2023 19:06:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CFCF21FE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1690045638; bh=y3U5YtvNwSlmhqbceBhaWkXGNHLjY7z5svvk/Su/I6k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Zz+2RiekEPr5c5DIBV1AYBBxRSkMq0g/cuGDAoxcEcVSgtTuHfTV3f5zWC6Xy3dAo xNxEW4FUtLiv3OUQc1M+YNo1++wwZj4W418EiTYRrBJGuoNrT/iICPc2RuZiUY9YSL 3qAP6j3f8098VESCrYsffh4icKgr/VaLWwVxIm/k= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D491DF80558; Sat, 22 Jul 2023 19:05:38 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 36CECF80548; Sat, 22 Jul 2023 19:05:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5DA3CF8047D; Fri, 21 Jul 2023 15:46:59 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D7308F8007E for ; Fri, 21 Jul 2023 15:46:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D7308F8007E X-IronPort-AV: E=McAfee;i="6600,9927,10778"; a="433255161" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="433255161" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2023 06:46:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10778"; a="728103153" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="728103153" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 21 Jul 2023 06:46:34 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qMqSj-006s0v-2p; Fri, 21 Jul 2023 16:46:29 +0300 Date: Fri, 21 Jul 2023 16:46:29 +0300 From: Andy Shevchenko To: Stephen Boyd Cc: Alessandro Zummo , Alexander Sverdlin , Alexandre Belloni , Arnd Bergmann , Bartosz Golaszewski , Conor Dooley , Damien Le Moal , Daniel Lezcano , "David S. Miller" , Dmitry Torokhov , Eric Dumazet , Guenter Roeck , Hartley Sweeten , Jakub Kicinski , Jaroslav Kysela , Kris Bahnsen , Krzysztof Kozlowski , Lennert Buytenhek , Liam Girdwood , Linus Walleij , Lukasz Majewski , Mark Brown , Michael Peters , Michael Turquette , Miquel Raynal , Nikita Shubin , Nikita Shubin via B4 Relay , Olof Johansson , Paolo Abeni , Richard Weinberger , Rob Herring , Russell King , Sebastian Reichel , Sergey Shtylyov , Takashi Iwai , Thierry Reding , Thomas Gleixner , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Vignesh Raghavendra , Vinod Koul , Wim Van Sebroeck , soc@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-pm@vger.kernel.org, linux-pwm@vger.kernel.org, linux-spi@vger.kernel.org, netdev@vger.kernel.org, dmaengine@vger.kernel.org, linux-mtd@lists.infradead.org, linux-ide@vger.kernel.org, linux-input@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH v3 03/42] clk: ep93xx: add DT support for Cirrus EP93xx Message-ID: References: <20230605-ep93xx-v3-0-3d63a5f1103e@maquefel.me> <20230605-ep93xx-v3-3-3d63a5f1103e@maquefel.me> <3fcb760c101c5f7081235290362f5c02.sboyd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3fcb760c101c5f7081235290362f5c02.sboyd@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-MailFrom: andy@kernel.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: UWBZS3WEHLGP4XGYRURH7KCK2YZN7FZW X-Message-ID-Hash: UWBZS3WEHLGP4XGYRURH7KCK2YZN7FZW X-Mailman-Approved-At: Sat, 22 Jul 2023 17:03:50 +0000 X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, Jul 20, 2023 at 04:27:45PM -0700, Stephen Boyd wrote: > Quoting Nikita Shubin via B4 Relay (2023-07-20 04:29:03) ... > > +static bool is_best(unsigned long rate, unsigned long now, > > + unsigned long best) > > +{ > > + return abs(rate - now) < abs(rate - best); > > Another case where we need abs_diff() so that it doesn't get confused > when trying to do signed comparison. Here you are: Message-Id: <20230721134235.15517-1-andriy.shevchenko@linux.intel.com> -- With Best Regards, Andy Shevchenko