Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752604AbbBRKJy (ORCPT ); Wed, 18 Feb 2015 05:09:54 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:45525 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751355AbbBRKJw (ORCPT ); Wed, 18 Feb 2015 05:09:52 -0500 X-AuditID: cbfee61a-f79c06d000004e71-7f-54e464ee1185 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 v4 2/8] thermal: Provide stub for thermal_cdev_update() function Date: Wed, 18 Feb 2015 11:07:30 +0100 Message-id: <1424254056-5904-3-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1424254056-5904-1-git-send-email-l.majewski@samsung.com> References: <1418897591-18332-1-git-send-email-l.majewski@samsung.com> <1424254056-5904-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t9jAd13KU9CDObvkrJ4vGYxk8X8I+dY LeZfucZqsfTuJzaLH68vsFms+atk0bvgKptF/+PXzBZvHnFbvHm4mdHi8q45bBafe48wWsw4 v4/J4snCM0wWd6btZbOYfvwtq4OAx9/n11k8ds66y+6xaVUnm8eDibvZPNZNe8vssfN7A7tH 35ZVjB6bT1d7fN4kF8AZxWWTkpqTWZZapG+XwJXR9nYqW8Esvop/u54zNzC28nQxcnJICJhI NH5ezwRhi0lcuLeerYuRi0NIYBGjxPaT7ewQTheTxK+luxhBqtgE9CQ+333KBJIQEdjOKLFi 3jewFmaBa8wS+zYfBZslLBAg0X+/h7mLkYODRUBV4n2XDojJK+Aq8exaLcQ2RYnuZxPYQGxO ATeJrXuWQS1rYpSYt/Qn8wRG3gWMDKsYRVMLkguKk9JzDfWKE3OLS/PS9ZLzczcxgoP6mdQO xpUNFocYBTgYlXh4G34/DhFiTSwrrsw9xCjBwawkwhsf/yREiDclsbIqtSg/vqg0J7X4EKM0 B4uSOK+SfVuIkEB6YklqdmpqQWoRTJaJg1OqgXFt0G3rbZ8Pz1A+ynTQZf8j+w8nHgntu7pu 5Vreixqr0vJXTtvREn1xqlZc2RydvaetZTs8VMRVTvl8enBl0+0vB1azLLFhXzbDabkuv1kU c/mxf2tWtv/bO3PWh+n8vNJyN65Z6/Jm8kr5LuzPfn6etf8hzx9pNsWgGmPzCZIxx/v1b6RJ tvMqsRRnJBpqMRcVJwIAaphlDGYCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2010 Lines: 58 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 Changes for v4: - None --- 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/