From patchwork Thu Aug 31 06:00:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9931229 X-Patchwork-Delegate: rui.zhang@intel.com 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 E5AB460362 for ; Thu, 31 Aug 2017 06:01:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D910C2881C for ; Thu, 31 Aug 2017 06:01:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDBD528846; Thu, 31 Aug 2017 06:01:15 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7378D2881C for ; Thu, 31 Aug 2017 06:01:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750884AbdHaGBO (ORCPT ); Thu, 31 Aug 2017 02:01:14 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33986 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbdHaGBN (ORCPT ); Thu, 31 Aug 2017 02:01:13 -0400 Received: by mail-pf0-f195.google.com with SMTP id v22so888593pfk.1; Wed, 30 Aug 2017 23:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=9sp6hfwAOQ1krg6ktjYwSVZzcEDezv9o6IhUOjb/dQs=; b=eQ7YsSono+/1FbIV2eyLTW0PPIqc1mcOe+UazN7pIAjgQr3+fxq+AEKpsB7PH+gJ3x 6GlTzTYt76y5JBCQGk3CbWZeMIJR14JMskUeODBRQ41BtBO3Gnl8zKhpZOxIY8xTlz0G X5nzgwQvTuhLZpvRpMfEvEbZxD3mCZobguXW6qN56W/08vBygK8nffrpvzuU/KbKmhpa 3zj1glde//UTAmaupxpEjfnQjlipCkkVQABl58qzxTjCr3RiQF7c30ZM1zwFH8Td3Txk d8Am2ZzvIaw40PZ4SWfHKISer+b0S2BLwxoWyYK9cKbpnTd4rXBjCgqolGe9m2H5WxuO ll3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9sp6hfwAOQ1krg6ktjYwSVZzcEDezv9o6IhUOjb/dQs=; b=RyJ8z20Qv6NeAsDHVoM1FXRxfsY57NtLS6mTt2hrGm6dF2V62s10zR7WH+NgfzMPke v/dXaZSqVmko1Qx9mcq8zvp401xOWX9eAz9d31AjM4tsqobNHKxIvQ/24D+sJAG3Ul2p RM8VUz3qK98sIf6pnITWKx67UA/czolGrqm2nNPEkMJWlSwNyfhcpWL2BhDdsdOBQwCk geH+OhDnmGeR9iW1vNXTbkWI4bWoYtgIfpB7GqYE0XKf9PizjuXIsL8ltATJ7pohTFrl z+KpWlmNR/9EQd2S2XH3XCVMMnZ3vijwWh2q+uUZwvR2nkDiqrvtQwXwHVfenGlEYqGP tm+Q== X-Gm-Message-State: AHYfb5gzN47osQc5Ocbt7Xx7+1eL1LHYgId1WVKsUDt5BIfyETIBrGQS ayzRT2NreV4jWA== X-Received: by 10.98.19.145 with SMTP id 17mr1188726pft.28.1504159273369; Wed, 30 Aug 2017 23:01:13 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id o64sm13373904pfk.84.2017.08.30.23.01.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Aug 2017 23:01:12 -0700 (PDT) From: Arvind Yadav To: edubezval@gmail.com, rui.zhang@intel.com, hch@lst.de Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH] thermal : Remove const to make same prototype Date: Thu, 31 Aug 2017 11:30:45 +0530 Message-Id: <29cf6375f8b1c667de1387e4e865aaa288a125ac.1504159021.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Here, prototype of thermal_zone_device_register is not matching with static inline thermal_zone_device_register. One is using const thermal_zone_params. Other is using non-const. Signed-off-by: Arvind Yadav --- include/linux/thermal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index dab11f9..8ba77ff 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -487,7 +487,7 @@ static inline int power_actor_set_power(struct thermal_cooling_device *cdev, static inline struct thermal_zone_device *thermal_zone_device_register( const char *type, int trips, int mask, void *devdata, struct thermal_zone_device_ops *ops, - const struct thermal_zone_params *tzp, + struct thermal_zone_params *tzp, int passive_delay, int polling_delay) { return ERR_PTR(-ENODEV); } static inline void thermal_zone_device_unregister(