]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
thermal: fix source code documentation for parameters
authorWilly WOLFF <willy.mh.wolff@gmail.com>
Sat, 24 Jun 2017 13:06:03 +0000 (14:06 +0100)
committerZhang Rui <rui.zhang@intel.com>
Thu, 29 Jun 2017 02:46:31 +0000 (10:46 +0800)
Some parameters are not documented, or not present at all, in thermal
governors code.

Signed-off-by: Willy Wolff <willy.mh.wolff@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/fair_share.c
drivers/thermal/step_wise.c
drivers/thermal/user_space.c

index 68bd1b56911850ee41dd7c508c7cad7f7c278ddf..d3469fbc52072d755899e7e9b669f587f2e8af2e 100644 (file)
@@ -71,6 +71,7 @@ static long get_target_state(struct thermal_zone_device *tz,
 /**
  * fair_share_throttle - throttles devices associated with the given zone
  * @tz - thermal_zone_device
+ * @trip - trip point index
  *
  * Throttling Logic: This uses three parameters to calculate the new
  * throttle state of the cooling devices associated with the given zone.
index bcef2e7c4ec96f1cfc662019ccf0440d52d26328..be95826631b72cfffb9bf5187e530c71fda2c130 100644 (file)
@@ -186,8 +186,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
 /**
  * step_wise_throttle - throttles devices associated with the given zone
  * @tz - thermal_zone_device
- * @trip - the trip point
- * @trip_type - type of the trip point
+ * @trip - trip point index
  *
  * Throttling Logic: This uses the trend of the thermal zone to throttle.
  * If the thermal zone is 'heating up' this throttles all the cooling
index c908150c268df049a33d0139b6c0e7bb585858d6..8e92a06ef48a2a7b0bf5a2077d545b2e67ced114 100644 (file)
 
 #include <linux/thermal.h>
 #include <linux/slab.h>
+
 #include "thermal_core.h"
 
 /**
  * notify_user_space - Notifies user space about thermal events
  * @tz - thermal_zone_device
- * @trip - Trip point index
+ * @trip - trip point index
  *
  * This function notifies the user space through UEvents.
  */