Skip to content

Commit af57fa4

Browse files
Srikant Ritoliachanwoochoi
authored andcommitted
extcon: Restructure multi-line comments to follow codingstyle
Aligning all block comments in extcon subsystem as per linux coding style. Found using checkpatch.pl script. Signed-off-by: Srikant Ritolia <s.ritolia@samsung.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent e7d9dd5 commit af57fa4

5 files changed

Lines changed: 36 additions & 18 deletions

File tree

drivers/extcon/extcon-max14577.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,10 @@ static int max14577_parse_irq(struct max14577_muic_info *info, int irq_type)
531531
case MAX14577_IRQ_INT1_ADC:
532532
case MAX14577_IRQ_INT1_ADCLOW:
533533
case MAX14577_IRQ_INT1_ADCERR:
534-
/* Handle all of accessory except for
535-
type of charger accessory */
534+
/*
535+
* Handle all of accessory except for
536+
* type of charger accessory.
537+
*/
536538
info->irq_adc = true;
537539
return 1;
538540
case MAX14577_IRQ_INT2_CHGTYP:

drivers/extcon/extcon-max77693.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ enum max77693_muic_acc_type {
188188
MAX77693_MUIC_ADC_AUDIO_MODE_REMOTE,
189189
MAX77693_MUIC_ADC_OPEN,
190190

191-
/* The below accessories have same ADC value so ADCLow and
192-
ADC1K bit is used to separate specific accessory */
191+
/*
192+
* The below accessories have same ADC value so ADCLow and
193+
* ADC1K bit is used to separate specific accessory.
194+
*/
193195
/* ADC|VBVolot|ADCLow|ADC1K| */
194196
MAX77693_MUIC_GND_USB_HOST = 0x100, /* 0x0| 0| 0| 0| */
195197
MAX77693_MUIC_GND_USB_HOST_VB = 0x104, /* 0x0| 1| 0| 0| */
@@ -970,8 +972,10 @@ static void max77693_muic_irq_work(struct work_struct *work)
970972
case MAX77693_MUIC_IRQ_INT1_ADC_LOW:
971973
case MAX77693_MUIC_IRQ_INT1_ADC_ERR:
972974
case MAX77693_MUIC_IRQ_INT1_ADC1K:
973-
/* Handle all of accessory except for
974-
type of charger accessory */
975+
/*
976+
* Handle all of accessory except for
977+
* type of charger accessory.
978+
*/
975979
ret = max77693_muic_adc_handler(info);
976980
break;
977981
case MAX77693_MUIC_IRQ_INT2_CHGTYP:

drivers/extcon/extcon-max77843.c

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ enum max77843_muic_accessory_type {
9797
MAX77843_MUIC_ADC_AUDIO_DEVICE_TYPE1,
9898
MAX77843_MUIC_ADC_OPEN,
9999

100-
/* The blow accessories should check
101-
not only ADC value but also ADC1K and VBVolt value. */
100+
/*
101+
* The below accessories should check
102+
* not only ADC value but also ADC1K and VBVolt value.
103+
*/
102104
/* Offset|ADC1K|VBVolt| */
103105
MAX77843_MUIC_GND_USB_HOST = 0x100, /* 0x1| 0| 0| */
104106
MAX77843_MUIC_GND_USB_HOST_VB = 0x101, /* 0x1| 0| 1| */
@@ -265,16 +267,20 @@ static int max77843_muic_get_cable_type(struct max77843_muic_info *info,
265267
/* Check GROUND accessory with charger cable */
266268
if (adc == MAX77843_MUIC_ADC_GROUND) {
267269
if (chg_type == MAX77843_MUIC_CHG_NONE) {
268-
/* The following state when charger cable is
270+
/*
271+
* The following state when charger cable is
269272
* disconnected but the GROUND accessory still
270-
* connected */
273+
* connected.
274+
*/
271275
*attached = false;
272276
cable_type = info->prev_chg_type;
273277
info->prev_chg_type = MAX77843_MUIC_CHG_NONE;
274278
} else {
275279

276-
/* The following state when charger cable is
277-
* connected on the GROUND accessory */
280+
/*
281+
* The following state when charger cable is
282+
* connected on the GROUND accessory.
283+
*/
278284
*attached = true;
279285
cable_type = MAX77843_MUIC_CHG_GND;
280286
info->prev_chg_type = MAX77843_MUIC_CHG_GND;
@@ -299,11 +305,13 @@ static int max77843_muic_get_cable_type(struct max77843_muic_info *info,
299305
} else {
300306
*attached = true;
301307

302-
/* Offset|ADC1K|VBVolt|
308+
/*
309+
* Offset|ADC1K|VBVolt|
303310
* 0x1| 0| 0| USB-HOST
304311
* 0x1| 0| 1| USB-HOST with VB
305312
* 0x1| 1| 0| MHL
306-
* 0x1| 1| 1| MHL with VB */
313+
* 0x1| 1| 1| MHL with VB
314+
*/
307315
/* Get ADC1K register bit */
308316
gnd_type = (info->status[MAX77843_MUIC_STATUS1] &
309317
MAX77843_MUIC_STATUS1_ADC1K_MASK);

drivers/extcon/extcon-rt8973a.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ enum rt8973a_muic_acc_type {
142142
RT8973A_MUIC_ADC_UNKNOWN_ACC_5,
143143
RT8973A_MUIC_ADC_OPEN = 0x1f,
144144

145-
/* The below accessories has same ADC value (0x1f).
146-
So, Device type1 is used to separate specific accessory. */
145+
/*
146+
* The below accessories has same ADC value (0x1f).
147+
* So, Device type1 is used to separate specific accessory.
148+
*/
147149
/* |---------|--ADC| */
148150
/* | [7:5]|[4:0]| */
149151
RT8973A_MUIC_ADC_USB = 0x3f, /* | 001|11111| */

drivers/extcon/extcon-sm5502.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ enum sm5502_muic_acc_type {
135135
SM5502_MUIC_ADC_AUDIO_TYPE1,
136136
SM5502_MUIC_ADC_OPEN = 0x1f,
137137

138-
/* The below accessories have same ADC value (0x1f or 0x1e).
139-
So, Device type1 is used to separate specific accessory. */
138+
/*
139+
* The below accessories have same ADC value (0x1f or 0x1e).
140+
* So, Device type1 is used to separate specific accessory.
141+
*/
140142
/* |---------|--ADC| */
141143
/* | [7:5]|[4:0]| */
142144
SM5502_MUIC_ADC_AUDIO_TYPE1_FULL_REMOTE = 0x3e, /* | 001|11110| */

0 commit comments

Comments
 (0)