aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2019-01-20 21:11:07 -0500
committerMyungJoo Ham <myungjoo.ham@samsung.com>2019-04-15 20:29:18 -0400
commit6d690f77932fe1f3ce5eb2de2c5ac16d33197608 (patch)
treec9a0c03dca1cd6bdc861949823fdb34fc639eea5
parent25846fa1cedada274b65ffd2413378290a60be47 (diff)
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>
-rw-r--r--drivers/devfreq/devfreq.c49
1 files changed, 24 insertions, 25 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 4af608a61cd9..428a1de81008 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -528,7 +528,7 @@ void devfreq_interval_update(struct devfreq *devfreq, unsigned int *delay)
528 mutex_lock(&devfreq->lock); 528 mutex_lock(&devfreq->lock);
529 if (!devfreq->stop_polling) 529 if (!devfreq->stop_polling)
530 queue_delayed_work(devfreq_wq, &devfreq->work, 530 queue_delayed_work(devfreq_wq, &devfreq->work,
531 msecs_to_jiffies(devfreq->profile->polling_ms)); 531 msecs_to_jiffies(devfreq->profile->polling_ms));
532 } 532 }
533out: 533out:
534 mutex_unlock(&devfreq->lock); 534 mutex_unlock(&devfreq->lock);
@@ -537,7 +537,7 @@ EXPORT_SYMBOL(devfreq_interval_update);
537 537
538/** 538/**
539 * devfreq_notifier_call() - Notify that the device frequency requirements 539 * devfreq_notifier_call() - Notify that the device frequency requirements
540 * has been changed out of devfreq framework. 540 * has been changed out of devfreq framework.
541 * @nb: the notifier_block (supposed to be devfreq->nb) 541 * @nb: the notifier_block (supposed to be devfreq->nb)
542 * @type: not used 542 * @type: not used
543 * @devp: not used 543 * @devp: not used
@@ -683,12 +683,11 @@ struct devfreq *devfreq_add_device(struct device *dev,
683 goto err_out; 683 goto err_out;
684 } 684 }
685 685
686 devfreq->trans_table = 686 devfreq->trans_table = devm_kzalloc(&devfreq->dev,
687 devm_kzalloc(&devfreq->dev, 687 array3_size(sizeof(unsigned int),
688 array3_size(sizeof(unsigned int), 688 devfreq->profile->max_state,
689 devfreq->profile->max_state, 689 devfreq->profile->max_state),
690 devfreq->profile->max_state), 690 GFP_KERNEL);
691 GFP_KERNEL);
692 if (!devfreq->trans_table) { 691 if (!devfreq->trans_table) {
693 mutex_unlock(&devfreq->lock); 692 mutex_unlock(&devfreq->lock);
694 err = -ENOMEM; 693 err = -ENOMEM;
@@ -696,9 +695,9 @@ struct devfreq *devfreq_add_device(struct device *dev,
696 } 695 }
697 696
698 devfreq->time_in_state = devm_kcalloc(&devfreq->dev, 697 devfreq->time_in_state = devm_kcalloc(&devfreq->dev,
699 devfreq->profile->max_state, 698 devfreq->profile->max_state,
700 sizeof(unsigned long), 699 sizeof(unsigned long),
701 GFP_KERNEL); 700 GFP_KERNEL);
702 if (!devfreq->time_in_state) { 701 if (!devfreq->time_in_state) {
703 mutex_unlock(&devfreq->lock); 702 mutex_unlock(&devfreq->lock);
704 err = -ENOMEM; 703 err = -ENOMEM;
@@ -1184,7 +1183,7 @@ static ssize_t available_governors_show(struct device *d,
1184 */ 1183 */
1185 if (df->governor->immutable) { 1184 if (df->governor->immutable) {
1186 count = scnprintf(&buf[count], DEVFREQ_NAME_LEN, 1185 count = scnprintf(&buf[count], DEVFREQ_NAME_LEN,
1187 "%s ", df->governor_name); 1186 "%s ", df->governor_name);
1188 /* 1187 /*
1189 * The devfreq device shows the registered governor except for 1188 * The devfreq device shows the registered governor except for
1190 * immutable governors such as passive governor . 1189 * immutable governors such as passive governor .
@@ -1497,8 +1496,8 @@ EXPORT_SYMBOL(devfreq_recommended_opp);
1497 1496
1498/** 1497/**
1499 * devfreq_register_opp_notifier() - Helper function to get devfreq notified 1498 * devfreq_register_opp_notifier() - Helper function to get devfreq notified
1500 * for any changes in the OPP availability 1499 * for any changes in the OPP availability
1501 * changes 1500 * changes
1502 * @dev: The devfreq user device. (parent of devfreq) 1501 * @dev: The devfreq user device. (parent of devfreq)
1503 * @devfreq: The devfreq object. 1502 * @devfreq: The devfreq object.
1504 */ 1503 */
@@ -1510,8 +1509,8 @@ EXPORT_SYMBOL(devfreq_register_opp_notifier);
1510 1509
1511/** 1510/**
1512 * devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq 1511 * devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq
1513 * notified for any changes in the OPP 1512 * notified for any changes in the OPP
1514 * availability changes anymore. 1513 * availability changes anymore.
1515 * @dev: The devfreq user device. (parent of devfreq) 1514 * @dev: The devfreq user device. (parent of devfreq)
1516 * @devfreq: The devfreq object. 1515 * @devfreq: The devfreq object.
1517 * 1516 *
@@ -1530,8 +1529,8 @@ static void devm_devfreq_opp_release(struct device *dev, void *res)
1530} 1529}
1531 1530
1532/** 1531/**
1533 * devm_ devfreq_register_opp_notifier() 1532 * devm_devfreq_register_opp_notifier() - Resource-managed
1534 * - Resource-managed devfreq_register_opp_notifier() 1533 * devfreq_register_opp_notifier()
1535 * @dev: The devfreq user device. (parent of devfreq) 1534 * @dev: The devfreq user device. (parent of devfreq)
1536 * @devfreq: The devfreq object. 1535 * @devfreq: The devfreq object.
1537 */ 1536 */
@@ -1559,8 +1558,8 @@ int devm_devfreq_register_opp_notifier(struct device *dev,
1559EXPORT_SYMBOL(devm_devfreq_register_opp_notifier); 1558EXPORT_SYMBOL(devm_devfreq_register_opp_notifier);
1560 1559
1561/** 1560/**
1562 * devm_devfreq_unregister_opp_notifier() 1561 * devm_devfreq_unregister_opp_notifier() - Resource-managed
1563 * - Resource-managed devfreq_unregister_opp_notifier() 1562 * devfreq_unregister_opp_notifier()
1564 * @dev: The devfreq user device. (parent of devfreq) 1563 * @dev: The devfreq user device. (parent of devfreq)
1565 * @devfreq: The devfreq object. 1564 * @devfreq: The devfreq object.
1566 */ 1565 */
@@ -1579,8 +1578,8 @@ EXPORT_SYMBOL(devm_devfreq_unregister_opp_notifier);
1579 * @list: DEVFREQ_TRANSITION_NOTIFIER. 1578 * @list: DEVFREQ_TRANSITION_NOTIFIER.
1580 */ 1579 */
1581int devfreq_register_notifier(struct devfreq *devfreq, 1580int devfreq_register_notifier(struct devfreq *devfreq,
1582 struct notifier_block *nb, 1581 struct notifier_block *nb,
1583 unsigned int list) 1582 unsigned int list)
1584{ 1583{
1585 int ret = 0; 1584 int ret = 0;
1586 1585
@@ -1686,9 +1685,9 @@ EXPORT_SYMBOL(devm_devfreq_register_notifier);
1686 * @list: DEVFREQ_TRANSITION_NOTIFIER. 1685 * @list: DEVFREQ_TRANSITION_NOTIFIER.
1687 */ 1686 */
1688void devm_devfreq_unregister_notifier(struct device *dev, 1687void devm_devfreq_unregister_notifier(struct device *dev,
1689 struct devfreq *devfreq, 1688 struct devfreq *devfreq,
1690 struct notifier_block *nb, 1689 struct notifier_block *nb,
1691 unsigned int list) 1690 unsigned int list)
1692{ 1691{
1693 WARN_ON(devres_release(dev, devm_devfreq_notifier_release, 1692 WARN_ON(devres_release(dev, devm_devfreq_notifier_release,
1694 devm_devfreq_dev_match, devfreq)); 1693 devm_devfreq_dev_match, devfreq));