提交 e09651fc 编写于 作者: N Nishanth Menon 提交者: MyungJoo Ham

PM / devfreq: documentation cleanups for devfreq header

struct parameters need to have ':' in documentation for
scripts/kernel-doc to parse appropriately.

Fix the errors reported by:
./scripts/kernel-doc include/linux/devfreq.h >/dev/null

Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Kevin Hilman <khilman@ti.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: NNishanth Menon <nm@ti.com>
Acked-by: NRandy Dunlap <rdunlap@xenotime.net>
Acked-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
上级 d7895052
...@@ -25,12 +25,12 @@ struct devfreq; ...@@ -25,12 +25,12 @@ struct devfreq;
* struct devfreq_dev_status - Data given from devfreq user device to * struct devfreq_dev_status - Data given from devfreq user device to
* governors. Represents the performance * governors. Represents the performance
* statistics. * statistics.
* @total_time The total time represented by this instance of * @total_time: The total time represented by this instance of
* devfreq_dev_status * devfreq_dev_status
* @busy_time The time that the device was working among the * @busy_time: The time that the device was working among the
* total_time. * total_time.
* @current_frequency The operating frequency. * @current_frequency: The operating frequency.
* @private_data An entry not specified by the devfreq framework. * @private_data: An entry not specified by the devfreq framework.
* A device and a specific governor may have their * A device and a specific governor may have their
* own protocol with private_data. However, because * own protocol with private_data. However, because
* this is governor-specific, a governor using this * this is governor-specific, a governor using this
...@@ -54,21 +54,21 @@ struct devfreq_dev_status { ...@@ -54,21 +54,21 @@ struct devfreq_dev_status {
/** /**
* struct devfreq_dev_profile - Devfreq's user device profile * struct devfreq_dev_profile - Devfreq's user device profile
* @initial_freq The operating frequency when devfreq_add_device() is * @initial_freq: The operating frequency when devfreq_add_device() is
* called. * called.
* @polling_ms The polling interval in ms. 0 disables polling. * @polling_ms: The polling interval in ms. 0 disables polling.
* @target The device should set its operating frequency at * @target: The device should set its operating frequency at
* freq or lowest-upper-than-freq value. If freq is * freq or lowest-upper-than-freq value. If freq is
* higher than any operable frequency, set maximum. * higher than any operable frequency, set maximum.
* Before returning, target function should set * Before returning, target function should set
* freq at the current frequency. * freq at the current frequency.
* The "flags" parameter's possible values are * The "flags" parameter's possible values are
* explained above with "DEVFREQ_FLAG_*" macros. * explained above with "DEVFREQ_FLAG_*" macros.
* @get_dev_status The device should provide the current performance * @get_dev_status: The device should provide the current performance
* status to devfreq, which is used by governors. * status to devfreq, which is used by governors.
* @get_cur_freq The device should provide the current frequency * @get_cur_freq: The device should provide the current frequency
* at which it is operating. * at which it is operating.
* @exit An optional callback that is called when devfreq * @exit: An optional callback that is called when devfreq
* is removing the devfreq object due to error or * is removing the devfreq object due to error or
* from devfreq_remove_device() call. If the user * from devfreq_remove_device() call. If the user
* has registered devfreq->nb at a notifier-head, * has registered devfreq->nb at a notifier-head,
...@@ -87,14 +87,14 @@ struct devfreq_dev_profile { ...@@ -87,14 +87,14 @@ struct devfreq_dev_profile {
/** /**
* struct devfreq_governor - Devfreq policy governor * struct devfreq_governor - Devfreq policy governor
* @name Governor's name * @name: Governor's name
* @get_target_freq Returns desired operating frequency for the device. * @get_target_freq: Returns desired operating frequency for the device.
* Basically, get_target_freq will run * Basically, get_target_freq will run
* devfreq_dev_profile.get_dev_status() to get the * devfreq_dev_profile.get_dev_status() to get the
* status of the device (load = busy_time / total_time). * status of the device (load = busy_time / total_time).
* If no_central_polling is set, this callback is called * If no_central_polling is set, this callback is called
* only with update_devfreq() notified by OPP. * only with update_devfreq() notified by OPP.
* @event_handler Callback for devfreq core framework to notify events * @event_handler: Callback for devfreq core framework to notify events
* to governors. Events include per device governor * to governors. Events include per device governor
* init and exit, opp changes out of devfreq, suspend * init and exit, opp changes out of devfreq, suspend
* and resume of per device devfreq during device idle. * and resume of per device devfreq during device idle.
...@@ -110,23 +110,23 @@ struct devfreq_governor { ...@@ -110,23 +110,23 @@ struct devfreq_governor {
/** /**
* struct devfreq - Device devfreq structure * struct devfreq - Device devfreq structure
* @node list node - contains the devices with devfreq that have been * @node: list node - contains the devices with devfreq that have been
* registered. * registered.
* @lock a mutex to protect accessing devfreq. * @lock: a mutex to protect accessing devfreq.
* @dev device registered by devfreq class. dev.parent is the device * @dev: device registered by devfreq class. dev.parent is the device
* using devfreq. * using devfreq.
* @profile device-specific devfreq profile * @profile: device-specific devfreq profile
* @governor method how to choose frequency based on the usage. * @governor: method how to choose frequency based on the usage.
* @nb notifier block used to notify devfreq object that it should * @nb: notifier block used to notify devfreq object that it should
* reevaluate operable frequencies. Devfreq users may use * reevaluate operable frequencies. Devfreq users may use
* devfreq.nb to the corresponding register notifier call chain. * devfreq.nb to the corresponding register notifier call chain.
* @work delayed work for load monitoring. * @work: delayed work for load monitoring.
* @previous_freq previously configured frequency value. * @previous_freq: previously configured frequency value.
* @data Private data of the governor. The devfreq framework does not * @data: Private data of the governor. The devfreq framework does not
* touch this. * touch this.
* @min_freq Limit minimum frequency requested by user (0: none) * @min_freq: Limit minimum frequency requested by user (0: none)
* @max_freq Limit maximum frequency requested by user (0: none) * @max_freq: Limit maximum frequency requested by user (0: none)
* @stop_polling devfreq polling status of a device. * @stop_polling: devfreq polling status of a device.
* *
* This structure stores the devfreq information for a give device. * This structure stores the devfreq information for a give device.
* *
...@@ -186,9 +186,9 @@ extern const struct devfreq_governor devfreq_simple_ondemand; ...@@ -186,9 +186,9 @@ extern const struct devfreq_governor devfreq_simple_ondemand;
/** /**
* struct devfreq_simple_ondemand_data - void *data fed to struct devfreq * struct devfreq_simple_ondemand_data - void *data fed to struct devfreq
* and devfreq_add_device * and devfreq_add_device
* @ upthreshold If the load is over this value, the frequency jumps. * @upthreshold: If the load is over this value, the frequency jumps.
* Specify 0 to use the default. Valid value = 0 to 100. * Specify 0 to use the default. Valid value = 0 to 100.
* @ downdifferential If the load is under upthreshold - downdifferential, * @downdifferential: If the load is under upthreshold - downdifferential,
* the governor may consider slowing the frequency down. * the governor may consider slowing the frequency down.
* Specify 0 to use the default. Valid value = 0 to 100. * Specify 0 to use the default. Valid value = 0 to 100.
* downdifferential < upthreshold must hold. * downdifferential < upthreshold must hold.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册