Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758303AbbBFQ7j (ORCPT ); Fri, 6 Feb 2015 11:59:39 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:28957 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758201AbbBFQ7e (ORCPT ); Fri, 6 Feb 2015 11:59:34 -0500 X-AuditID: cbfee61b-f79d76d0000024d6-c5-54d4f2f463fb From: Lukasz Majewski To: Eduardo Valentin , Kamil Debski , Jean Delvare , Guenter Roeck , Kukjin Kim 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, Sjoerd Simons , Abhilash Kesavan , Abhilash Kesavan , Lukasz Majewski Subject: [PATCH v3 2/8] thermal: Provide stub for thermal_cdev_update() function Date: Fri, 06 Feb 2015 17:59:02 +0100 Message-id: <1423241948-31981-3-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1423241948-31981-1-git-send-email-l.majewski@samsung.com> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1423241948-31981-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t9jAd0vn66EGBx9bmDxeM1iJov5R86x Wsy/co3VYundT2wWP15fYLNY81fJonfBVTaL/sevmS3ePOK2ePNwM6PF5V1z2Cw+9x5htJhx fh+TxZOFZ5gs7kzby2Yx/fhbVgcBj7/Pr7N47Jx1l91j06pONo8HE3ezeayb9pbZY+f3BnaP vi2rGD02n672+LxJLoAzissmJTUnsyy1SN8ugSvj0LJfTAWNfBVXVs9gbmD8zN3FyMkhIWAi sXVJEwuELSZx4d56ti5GLg4hgUWMEv+3bYdyupgkjn6axQ5SxSagJ/H57lMmkISIwHZGiRXz voFVMQtcY5bYt/koE0iVsECAxLqfB8E6WARUJfZtWg60g52DV8BN4hLUZkWJ7mcT2EBsTgF3 iYP3drFDLGtmlFi46wjTBEbeBYwMqxhFUwuSC4qT0nON9IoTc4tL89L1kvNzNzGCg/qZ9A7G VQ0WhxgFOBiVeHgTeK+ECLEmlhVX5h5ilOBgVhLh7VkKFOJNSaysSi3Kjy8qzUktPsQozcGi JM6rZN8WIiSQnliSmp2aWpBaBJNl4uCUamCsTtXl0n3ipVFsNIfn+X6T6TVXb8oZ7hR+0xX8 QDfotMKh/gWHzXRffzmpf0g59Dh7t4jns+/aEw5Y+ZxRZuU5aN7TJvP2TOnCAoZT2fq27S1/ uxMSErLfyCQ3FoZrWc7KmfWr89vTcyxG9z+sFov97NeZars2N4D1rmfMtX0WQffLfoj82qjE UpyRaKjFXFScCABSEUn2ZgIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1987 Lines: 56 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 Changes for v3: - thermal_cdev_update() now depends on CONFIG_THERMAL flag --- include/linux/thermal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index eacf2de..25382e6 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -298,6 +298,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_cooling_device * thermal_of_cooling_device_register(struct device_node *np, @@ -306,6 +307,9 @@ thermal_of_cooling_device_register(struct device_node *np, { return NULL; } +static inline void thermal_cdev_update(struct thermal_cooling_device *cdev) +{ +} #endif #ifdef CONFIG_THERMAL_OF struct thermal_zone_device * @@ -349,7 +353,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 -- 2.0.0.rc2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/