From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH] cpufreq: Fix incorrect usage of clamp_val() Date: Tue, 31 May 2016 22:44:40 +0200 Message-ID: <1862829.dZ7UDDBhHr@vostro.rjw.lan> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: Received: from cloudserver094114.home.net.pl ([79.96.170.134]:54026 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750813AbcEaUkv (ORCPT ); Tue, 31 May 2016 16:40:51 -0400 In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org On Tuesday, May 31, 2016 04:49:42 PM Viresh Kumar wrote: > clamp_val() doesn't change anything by itself, rather it returns the > clamped value. > > Fix it. > > Fixes: 0ac587b32f49 ("cpufreq: Use clamp_val() in __cpufreq_driver_target()") > Signed-off-by: Viresh Kumar > --- > Hi Rafael, > > Please merge this with the offending commit if you are fine with rebase, > else apply this one as well. Done. > Sorry for blindly copying code. Well, I got that wrong myself after all ... Thanks, Rafael