diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2013-08-31 00:16:49 -0400 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2013-09-26 20:37:00 -0400 |
commit | a75e1c73a46eed0332d036e371f714e76d167c07 (patch) | |
tree | e910c19802ead91ec7dc26f1e8d6f63bb7e20faf /drivers/extcon/extcon-class.c | |
parent | a33411b26e43d67d361298a822ecfd76a177183f (diff) |
extcon: Fix indentation coding style to improve readability
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-class.c')
-rw-r--r-- | drivers/extcon/extcon-class.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/extcon/extcon-class.c b/drivers/extcon/extcon-class.c index 148382faded9..a29720822847 100644 --- a/drivers/extcon/extcon-class.c +++ b/drivers/extcon/extcon-class.c | |||
@@ -74,7 +74,7 @@ static DEFINE_MUTEX(extcon_dev_list_lock); | |||
74 | 74 | ||
75 | /** | 75 | /** |
76 | * check_mutually_exclusive - Check if new_state violates mutually_exclusive | 76 | * check_mutually_exclusive - Check if new_state violates mutually_exclusive |
77 | * condition. | 77 | * condition. |
78 | * @edev: the extcon device | 78 | * @edev: the extcon device |
79 | * @new_state: new cable attach status for @edev | 79 | * @new_state: new cable attach status for @edev |
80 | * | 80 | * |
@@ -189,7 +189,7 @@ static ssize_t cable_state_show(struct device *dev, | |||
189 | 189 | ||
190 | /** | 190 | /** |
191 | * extcon_update_state() - Update the cable attach states of the extcon device | 191 | * extcon_update_state() - Update the cable attach states of the extcon device |
192 | * only for the masked bits. | 192 | * only for the masked bits. |
193 | * @edev: the extcon device | 193 | * @edev: the extcon device |
194 | * @mask: the bit mask to designate updated bits. | 194 | * @mask: the bit mask to designate updated bits. |
195 | * @state: new cable attach status for @edev | 195 | * @state: new cable attach status for @edev |
@@ -227,7 +227,6 @@ int extcon_update_state(struct extcon_dev *edev, u32 mask, u32 state) | |||
227 | edev->state |= state & mask; | 227 | edev->state |= state & mask; |
228 | 228 | ||
229 | raw_notifier_call_chain(&edev->nh, old_state, edev); | 229 | raw_notifier_call_chain(&edev->nh, old_state, edev); |
230 | |||
231 | /* This could be in interrupt handler */ | 230 | /* This could be in interrupt handler */ |
232 | prop_buf = (char *)get_zeroed_page(GFP_ATOMIC); | 231 | prop_buf = (char *)get_zeroed_page(GFP_ATOMIC); |
233 | if (prop_buf) { | 232 | if (prop_buf) { |
@@ -339,8 +338,9 @@ EXPORT_SYMBOL_GPL(extcon_get_cable_state); | |||
339 | 338 | ||
340 | /** | 339 | /** |
341 | * extcon_set_cable_state_() - Set the status of a specific cable. | 340 | * extcon_set_cable_state_() - Set the status of a specific cable. |
342 | * @edev: the extcon device that has the cable. | 341 | * @edev: the extcon device that has the cable. |
343 | * @index: cable index that can be retrieved by extcon_find_cable_index(). | 342 | * @index: cable index that can be retrieved by |
343 | * extcon_find_cable_index(). | ||
344 | * @cable_state: the new cable status. The default semantics is | 344 | * @cable_state: the new cable status. The default semantics is |
345 | * true: attached / false: detached. | 345 | * true: attached / false: detached. |
346 | */ | 346 | */ |
@@ -359,8 +359,8 @@ EXPORT_SYMBOL_GPL(extcon_set_cable_state_); | |||
359 | 359 | ||
360 | /** | 360 | /** |
361 | * extcon_set_cable_state() - Set the status of a specific cable. | 361 | * extcon_set_cable_state() - Set the status of a specific cable. |
362 | * @edev: the extcon device that has the cable. | 362 | * @edev: the extcon device that has the cable. |
363 | * @cable_name: cable name. | 363 | * @cable_name: cable name. |
364 | * @cable_state: the new cable status. The default semantics is | 364 | * @cable_state: the new cable status. The default semantics is |
365 | * true: attached / false: detached. | 365 | * true: attached / false: detached. |
366 | * | 366 | * |
@@ -419,14 +419,14 @@ static int _call_per_cable(struct notifier_block *nb, unsigned long val, | |||
419 | 419 | ||
420 | /** | 420 | /** |
421 | * extcon_register_interest() - Register a notifier for a state change of a | 421 | * extcon_register_interest() - Register a notifier for a state change of a |
422 | * specific cable, not an entier set of cables of a | 422 | * specific cable, not an entier set of cables of a |
423 | * extcon device. | 423 | * extcon device. |
424 | * @obj: an empty extcon_specific_cable_nb object to be returned. | 424 | * @obj: an empty extcon_specific_cable_nb object to be returned. |
425 | * @extcon_name: the name of extcon device. | 425 | * @extcon_name: the name of extcon device. |
426 | * if NULL, extcon_register_interest will register | 426 | * if NULL, extcon_register_interest will register |
427 | * every cable with the target cable_name given. | 427 | * every cable with the target cable_name given. |
428 | * @cable_name: the target cable name. | 428 | * @cable_name: the target cable name. |
429 | * @nb: the notifier block to get notified. | 429 | * @nb: the notifier block to get notified. |
430 | * | 430 | * |
431 | * Provide an empty extcon_specific_cable_nb. extcon_register_interest() sets | 431 | * Provide an empty extcon_specific_cable_nb. extcon_register_interest() sets |
432 | * the struct for you. | 432 | * the struct for you. |
@@ -487,7 +487,7 @@ EXPORT_SYMBOL_GPL(extcon_register_interest); | |||
487 | 487 | ||
488 | /** | 488 | /** |
489 | * extcon_unregister_interest() - Unregister the notifier registered by | 489 | * extcon_unregister_interest() - Unregister the notifier registered by |
490 | * extcon_register_interest(). | 490 | * extcon_register_interest(). |
491 | * @obj: the extcon_specific_cable_nb object returned by | 491 | * @obj: the extcon_specific_cable_nb object returned by |
492 | * extcon_register_interest(). | 492 | * extcon_register_interest(). |
493 | */ | 493 | */ |
@@ -502,7 +502,7 @@ EXPORT_SYMBOL_GPL(extcon_unregister_interest); | |||
502 | 502 | ||
503 | /** | 503 | /** |
504 | * extcon_register_notifier() - Register a notifiee to get notified by | 504 | * extcon_register_notifier() - Register a notifiee to get notified by |
505 | * any attach status changes from the extcon. | 505 | * any attach status changes from the extcon. |
506 | * @edev: the extcon device. | 506 | * @edev: the extcon device. |
507 | * @nb: a notifier block to be registered. | 507 | * @nb: a notifier block to be registered. |
508 | * | 508 | * |