From patchwork Mon Dec 22 16:27:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 5527951 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7EB7D9F326 for ; Mon, 22 Dec 2014 16:28:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 64A292017D for ; Mon, 22 Dec 2014 16:28:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8C7EF20120 for ; Mon, 22 Dec 2014 16:28:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932089AbaLVQ2i (ORCPT ); Mon, 22 Dec 2014 11:28:38 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:24472 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932076AbaLVQ2g (ORCPT ); Mon, 22 Dec 2014 11:28:36 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NGZ00J69SFKU340@mailout1.samsung.com>; Tue, 23 Dec 2014 01:28:33 +0900 (KST) X-AuditID: cbfee61b-f79d76d0000024d6-74-549846b00c8c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 04.ED.09430.0B648945; Tue, 23 Dec 2014 01:28:32 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NGZ00H17SEF7V60@mmp1.samsung.com>; Tue, 23 Dec 2014 01:28:32 +0900 (KST) From: Lukasz Majewski To: Eduardo Valentin , Kamil Debski , Jean Delvare , Guenter Roeck Cc: lm-sensors@lm-sensors.org, Linux PM list , "linux-samsung-soc@vger.kernel.org" , devicetree@vger.kernel.org, Lukasz Majewski , Kukjin Kim , linux-kernel@vger.kernel.org, Sylwester Nawrocki , Abhilash Kesavan , Abhilash Kesavan , Lukasz Majewski Subject: [PATCH v2 2/8] thermal: Provide stub for thermal_cdev_update() function Date: Mon, 22 Dec 2014 17:27:42 +0100 Message-id: <1419265668-32283-3-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1419265668-32283-1-git-send-email-l.majewski@samsung.com> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1419265668-32283-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsVy+t9jAd0NbjNCDG7ONrZ4vGYxk8X8I+dY LeZfucZqsfTuJzaLH68vsFms+atk0bvgKpvFm0fcFm8ebma0uLxrDpvF594jjBYzzu9jsniy 8AyTxZ1pe9ksDr9pZ3Xg99g56y67x4OJu9k81k17y+yx83sDu0ffllWMHptPV3t83iQXwB7F ZZOSmpNZllqkb5fAlXF9633Ggna+imd9j9kbGL9xdzFyckgImEgcPHyOEcIWk7hwbz1bFyMX h5DAIkaJwyu3MkI4XUwSN7fdYwapYhPQk/h89ykTSEJEYAajxP6mb+wgDrPAFWaJb6caWUCq hAUCJLrPLmMDsVkEVCXeT1kJVMTBwSvgJrF2txPEOkWJ7mcT2EDCnALuEr9f8UIsa2aUOLWg kXkCI+8CRoZVjKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmbGMFh+0x6B+OqBotDjAIcjEo8vJxp 00OEWBPLiitzDzFKcDArifBetZwRIsSbklhZlVqUH19UmpNafIhRmoNFSZxXyb4tREggPbEk NTs1tSC1CCbLxMEp1cAopfr7Gdvx7cGi4n4f9LYvefHx+Zc6rWN87KbN9WafGrjjH33Ybu7V e/nyptszpptu+XNtcqjtH+2P/7Mfnj0+qdEyu0V72hEF1Rlr21ullAylVtjLO57Tb37286VE jIh3vOMX+fW7rxalT1WboyQabmdd1euT2bFAovb379A77ovyZuw2+bFfiaU4I9FQi7moOBEA xFoOqFcCAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Odroid U3 fan can work without being registered as OF cooling device (with CONFIG_THERMAL_OF disabled). In this situation it can be controlled via PWM entry at /sys/class/hwmon/hwmon0/pwm1. Therefore, the thermal_cdev_update() function needs a stub to allow clean compilation. Signed-off-by: Lukasz Majewski --- Changes for v2: - New patch --- include/linux/thermal.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 871123c..b3515b5 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -332,6 +332,7 @@ struct thermal_cooling_device * thermal_of_cooling_device_register(struct device_node *np, char *type, void *devdata, const struct thermal_cooling_device_ops *); +void thermal_cdev_update(struct thermal_cooling_device *); #else static inline struct thermal_zone_device * thermal_zone_of_sensor_register(struct device *dev, int id, void *data, @@ -353,6 +354,10 @@ thermal_of_cooling_device_register(struct device_node *np, { return NULL; } + +static inline void thermal_cdev_update(struct thermal_cooling_device *cdev) +{ +} #endif struct thermal_zone_device *thermal_zone_device_register(const char *, int, int, void *, struct thermal_zone_device_ops *, @@ -375,7 +380,6 @@ int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long *temp); int get_tz_trend(struct thermal_zone_device *, int); struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, struct thermal_cooling_device *, int); -void thermal_cdev_update(struct thermal_cooling_device *); void thermal_notify_framework(struct thermal_zone_device *, int); #ifdef CONFIG_NET