PM / devfreq: consistent indentation

Following up with complaints on inconsistent indentation from
Yangtao Li, this fixes indentation inconsistency.

In principle, this tries to put arguments aligned to the left
including the first argument except for the case where
the first argument is on the far-right side.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Yangtao Li <tiny.windzz@gmail.com>
This commit is contained in:
MyungJoo Ham 2019-01-21 11:11:07 +09:00
parent 25846fa1ce
commit 6d690f7793
1 changed files with 24 additions and 25 deletions

View File

@ -528,7 +528,7 @@ void devfreq_interval_update(struct devfreq *devfreq, unsigned int *delay)
mutex_lock(&devfreq->lock); mutex_lock(&devfreq->lock);
if (!devfreq->stop_polling) if (!devfreq->stop_polling)
queue_delayed_work(devfreq_wq, &devfreq->work, queue_delayed_work(devfreq_wq, &devfreq->work,
msecs_to_jiffies(devfreq->profile->polling_ms)); msecs_to_jiffies(devfreq->profile->polling_ms));
} }
out: out:
mutex_unlock(&devfreq->lock); mutex_unlock(&devfreq->lock);
@ -537,7 +537,7 @@ EXPORT_SYMBOL(devfreq_interval_update);
/** /**
* devfreq_notifier_call() - Notify that the device frequency requirements * devfreq_notifier_call() - Notify that the device frequency requirements
* has been changed out of devfreq framework. * has been changed out of devfreq framework.
* @nb: the notifier_block (supposed to be devfreq->nb) * @nb: the notifier_block (supposed to be devfreq->nb)
* @type: not used * @type: not used
* @devp: not used * @devp: not used
@ -683,12 +683,11 @@ struct devfreq *devfreq_add_device(struct device *dev,
goto err_out; goto err_out;
} }
devfreq->trans_table = devfreq->trans_table = devm_kzalloc(&devfreq->dev,
devm_kzalloc(&devfreq->dev, array3_size(sizeof(unsigned int),
array3_size(sizeof(unsigned int), devfreq->profile->max_state,
devfreq->profile->max_state, devfreq->profile->max_state),
devfreq->profile->max_state), GFP_KERNEL);
GFP_KERNEL);
if (!devfreq->trans_table) { if (!devfreq->trans_table) {
mutex_unlock(&devfreq->lock); mutex_unlock(&devfreq->lock);
err = -ENOMEM; err = -ENOMEM;
@ -696,9 +695,9 @@ struct devfreq *devfreq_add_device(struct device *dev,
} }
devfreq->time_in_state = devm_kcalloc(&devfreq->dev, devfreq->time_in_state = devm_kcalloc(&devfreq->dev,
devfreq->profile->max_state, devfreq->profile->max_state,
sizeof(unsigned long), sizeof(unsigned long),
GFP_KERNEL); GFP_KERNEL);
if (!devfreq->time_in_state) { if (!devfreq->time_in_state) {
mutex_unlock(&devfreq->lock); mutex_unlock(&devfreq->lock);
err = -ENOMEM; err = -ENOMEM;
@ -1184,7 +1183,7 @@ static ssize_t available_governors_show(struct device *d,
*/ */
if (df->governor->immutable) { if (df->governor->immutable) {
count = scnprintf(&buf[count], DEVFREQ_NAME_LEN, count = scnprintf(&buf[count], DEVFREQ_NAME_LEN,
"%s ", df->governor_name); "%s ", df->governor_name);
/* /*
* The devfreq device shows the registered governor except for * The devfreq device shows the registered governor except for
* immutable governors such as passive governor . * immutable governors such as passive governor .
@ -1497,8 +1496,8 @@ EXPORT_SYMBOL(devfreq_recommended_opp);
/** /**
* devfreq_register_opp_notifier() - Helper function to get devfreq notified * devfreq_register_opp_notifier() - Helper function to get devfreq notified
* for any changes in the OPP availability * for any changes in the OPP availability
* changes * changes
* @dev: The devfreq user device. (parent of devfreq) * @dev: The devfreq user device. (parent of devfreq)
* @devfreq: The devfreq object. * @devfreq: The devfreq object.
*/ */
@ -1510,8 +1509,8 @@ EXPORT_SYMBOL(devfreq_register_opp_notifier);
/** /**
* devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq * devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq
* notified for any changes in the OPP * notified for any changes in the OPP
* availability changes anymore. * availability changes anymore.
* @dev: The devfreq user device. (parent of devfreq) * @dev: The devfreq user device. (parent of devfreq)
* @devfreq: The devfreq object. * @devfreq: The devfreq object.
* *
@ -1530,8 +1529,8 @@ static void devm_devfreq_opp_release(struct device *dev, void *res)
} }
/** /**
* devm_ devfreq_register_opp_notifier() * devm_devfreq_register_opp_notifier() - Resource-managed
* - Resource-managed devfreq_register_opp_notifier() * devfreq_register_opp_notifier()
* @dev: The devfreq user device. (parent of devfreq) * @dev: The devfreq user device. (parent of devfreq)
* @devfreq: The devfreq object. * @devfreq: The devfreq object.
*/ */
@ -1559,8 +1558,8 @@ int devm_devfreq_register_opp_notifier(struct device *dev,
EXPORT_SYMBOL(devm_devfreq_register_opp_notifier); EXPORT_SYMBOL(devm_devfreq_register_opp_notifier);
/** /**
* devm_devfreq_unregister_opp_notifier() * devm_devfreq_unregister_opp_notifier() - Resource-managed
* - Resource-managed devfreq_unregister_opp_notifier() * devfreq_unregister_opp_notifier()
* @dev: The devfreq user device. (parent of devfreq) * @dev: The devfreq user device. (parent of devfreq)
* @devfreq: The devfreq object. * @devfreq: The devfreq object.
*/ */
@ -1579,8 +1578,8 @@ EXPORT_SYMBOL(devm_devfreq_unregister_opp_notifier);
* @list: DEVFREQ_TRANSITION_NOTIFIER. * @list: DEVFREQ_TRANSITION_NOTIFIER.
*/ */
int devfreq_register_notifier(struct devfreq *devfreq, int devfreq_register_notifier(struct devfreq *devfreq,
struct notifier_block *nb, struct notifier_block *nb,
unsigned int list) unsigned int list)
{ {
int ret = 0; int ret = 0;
@ -1686,9 +1685,9 @@ EXPORT_SYMBOL(devm_devfreq_register_notifier);
* @list: DEVFREQ_TRANSITION_NOTIFIER. * @list: DEVFREQ_TRANSITION_NOTIFIER.
*/ */
void devm_devfreq_unregister_notifier(struct device *dev, void devm_devfreq_unregister_notifier(struct device *dev,
struct devfreq *devfreq, struct devfreq *devfreq,
struct notifier_block *nb, struct notifier_block *nb,
unsigned int list) unsigned int list)
{ {
WARN_ON(devres_release(dev, devm_devfreq_notifier_release, WARN_ON(devres_release(dev, devm_devfreq_notifier_release,
devm_devfreq_dev_match, devfreq)); devm_devfreq_dev_match, devfreq));