From patchwork Wed Nov 15 15:24:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10059717 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 509DF6019D for ; Wed, 15 Nov 2017 15:24:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4006329C0B for ; Wed, 15 Nov 2017 15:24:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3443A29F76; Wed, 15 Nov 2017 15:24:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 11B5329C0B for ; Wed, 15 Nov 2017 15:24:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=LeMAVO1ClsH3lIY6xb4Ms8aWwHfAMzuQXOlGF7LGPMg=; b=HocG5/mOYT1h2z/0aKeCc+jvjK BYltxUF9MjKjO87d4i/4/OZ4YV26w0sOiTD3bFVLVaXDV8rc4+Z+dsH+q8tO/goQ9sOOB+p4ejXbK 6UGgfp/9InKbMh3OJ5EV+thlIUorKdPDdgEsdVW/zEc0SkYbU+rZlrCQSazEJcX5Z+1mts5jjuQqy 3Fr6CBGdNri5X73xyE216MrMiDWci5mu1u8XZDZMwd0HFiZs6Zw0C3aPYViDxB4rRsFScEhnZTdex Q9wamMIGH51pmVj0m9qPBCXgEfFtV76SyBwC5JWb8D9q9WH2BtlrA4wIvEsD1tozJRZRdMkgyCaNy 9+fLdmFw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eEzYa-0003JU-HM; Wed, 15 Nov 2017 15:24:52 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eEzYX-0003Gm-3P for linux-mediatek@lists.infradead.org; Wed, 15 Nov 2017 15:24:51 +0000 Received: by mail-wm0-x241.google.com with SMTP id 9so3731830wme.4 for ; Wed, 15 Nov 2017 07:24:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=MG2Br+NbgYKzuZl1kew+qr4xtxmXpRu4rwR0Ob8gPR8=; b=gXGdB+hE5T9laZFpDqzmEpYIoe3AT5vGzs9XjmhaCvANajZCAsI6vqbNB+FEWMeUae K/3KNi3Y8Z6HFV5P2IDx/ntYeTqceiwjr8Yv6+SpF2/CSsGy0zI7Z2j/zl/eHAdXb/RH o4Rr9Gu9RZnJ+/9yfhHv6qf1FmqEB0I2Pc9NvNlKie2vItvJCgDwK0guPgAe1VFt95Z9 bIjDCl0T6PHMHUo8dXhjWSHHAppF16pKXf4ZFWngtkzYMccN1DdWEltNdWQlW3St8eX/ oCdui27JA5SQoXZoOiaHfxTpx3U3zZtRw8srH9X8rqivaw1p8VToShf/syMbAkuqTmNz Hz1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=MG2Br+NbgYKzuZl1kew+qr4xtxmXpRu4rwR0Ob8gPR8=; b=i98X+cQUKRON4YxcYk1/WIDytqYitnlMp+lJfUffiV/VqZf1xOfjyKA4qhd/ZwO37R FjMORiHVK6OrMuHAN9p6zhqIRjakgW8zZ+UTknfDskg+hu2U6rHvDGRe4H2g21mr2+6Z xCIRnE1c/OZvMucfhxdyJ5pJKRAo1IugUilFgfhDbktixQg4ZF0coKwyT3oi7eqv19rd FQTr4KKtQ4qcDJ0UwPwl/lsQVfiYjiQf/+0290kAyrAj0fwyuSDUGyBw/hCTb9E6E7+l 6FWpUn2PkZRg97QK6GTJF/TZ8NkhKP4FdcM8gjXAdfrHp8KgMQD0/kB48PdODbGElJ+b s2hw== X-Gm-Message-State: AJaThX5AwbWsAX6mMUvyBMNCus1JM+YimUYjtungZpQClDDAgz8lgD/k X59VhMLO8gVeljdryGleKSKhIeM= X-Google-Smtp-Source: AGs4zMZHS/s4QfXMqEqM5+93llU1GPmT0R4V2QzZjx4gd3KX7cC2rly/RtZ93AWIQ2OHjbQ4nkU5pw== X-Received: by 10.28.1.80 with SMTP id 77mr12505366wmb.51.1510759468156; Wed, 15 Nov 2017 07:24:28 -0800 (PST) Received: from groucho.site (ipbcc0ce42.dynamic.kabel-deutschland.de. [188.192.206.66]) by smtp.gmail.com with ESMTPSA id s12sm51547104wrc.89.2017.11.15.07.24.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 07:24:27 -0800 (PST) From: Ulrich Hecht To: linux-mediatek@lists.infradead.org Subject: [POC 01/16] drm/img-rogue: fix signatures of struct devfreq_cooling_power ops Date: Wed, 15 Nov 2017 16:24:08 +0100 Message-Id: <1510759463-30201-2-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510759463-30201-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1510759463-30201-1-git-send-email-ulrich.hecht+renesas@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_072449_421507_EC1A512A X-CRM114-Status: UNSURE ( 7.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulrich Hecht , mbrugger@suse.com, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Has a struct devfreq pointer now. Signed-off-by: Ulrich Hecht --- drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c b/drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c index 14f7dcc..bbda6ff 100644 --- a/drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c +++ b/drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c @@ -245,7 +245,8 @@ static u32 interpolate(int value, const int *x, const unsigned int *y, int len) return ret; } -static unsigned long mtk_mfg_get_static_power(unsigned long voltage) +static unsigned long mtk_mfg_get_static_power(struct devfreq *devfreq, + unsigned long voltage) { struct mtk_mfg *mfg = gsDevice.hSysData; struct thermal_zone_device *tz = mfg->tz; @@ -299,7 +300,8 @@ static unsigned long mtk_mfg_get_static_power(unsigned long voltage) return power; } -static unsigned long mtk_mfg_get_dynamic_power(unsigned long freq, +static unsigned long mtk_mfg_get_dynamic_power(struct devfreq *devfreq, + unsigned long freq, unsigned long voltage) { #define NUM_RANGE ARRAY_SIZE(f_range)