Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Srikant Ritolia and committed by
Chanwoo Choi
af57fa4d e7d9dd5a

+36 -18
+4 -2
drivers/extcon/extcon-max14577.c
··· 531 531 case MAX14577_IRQ_INT1_ADC: 532 532 case MAX14577_IRQ_INT1_ADCLOW: 533 533 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 + */ 536 538 info->irq_adc = true; 537 539 return 1; 538 540 case MAX14577_IRQ_INT2_CHGTYP:
+8 -4
drivers/extcon/extcon-max77693.c
··· 188 188 MAX77693_MUIC_ADC_AUDIO_MODE_REMOTE, 189 189 MAX77693_MUIC_ADC_OPEN, 190 190 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 + */ 193 195 /* ADC|VBVolot|ADCLow|ADC1K| */ 194 196 MAX77693_MUIC_GND_USB_HOST = 0x100, /* 0x0| 0| 0| 0| */ 195 197 MAX77693_MUIC_GND_USB_HOST_VB = 0x104, /* 0x0| 1| 0| 0| */ ··· 972 970 case MAX77693_MUIC_IRQ_INT1_ADC_LOW: 973 971 case MAX77693_MUIC_IRQ_INT1_ADC_ERR: 974 972 case MAX77693_MUIC_IRQ_INT1_ADC1K: 975 - /* Handle all of accessory except for 976 - type of charger accessory */ 973 + /* 974 + * Handle all of accessory except for 975 + * type of charger accessory. 976 + */ 977 977 ret = max77693_muic_adc_handler(info); 978 978 break; 979 979 case MAX77693_MUIC_IRQ_INT2_CHGTYP:
+16 -8
drivers/extcon/extcon-max77843.c
··· 97 97 MAX77843_MUIC_ADC_AUDIO_DEVICE_TYPE1, 98 98 MAX77843_MUIC_ADC_OPEN, 99 99 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 + */ 102 104 /* Offset|ADC1K|VBVolt| */ 103 105 MAX77843_MUIC_GND_USB_HOST = 0x100, /* 0x1| 0| 0| */ 104 106 MAX77843_MUIC_GND_USB_HOST_VB = 0x101, /* 0x1| 0| 1| */ ··· 267 265 /* Check GROUND accessory with charger cable */ 268 266 if (adc == MAX77843_MUIC_ADC_GROUND) { 269 267 if (chg_type == MAX77843_MUIC_CHG_NONE) { 270 - /* The following state when charger cable is 268 + /* 269 + * The following state when charger cable is 271 270 * disconnected but the GROUND accessory still 272 - * connected */ 271 + * connected. 272 + */ 273 273 *attached = false; 274 274 cable_type = info->prev_chg_type; 275 275 info->prev_chg_type = MAX77843_MUIC_CHG_NONE; 276 276 } else { 277 277 278 - /* The following state when charger cable is 279 - * connected on the GROUND accessory */ 278 + /* 279 + * The following state when charger cable is 280 + * connected on the GROUND accessory. 281 + */ 280 282 *attached = true; 281 283 cable_type = MAX77843_MUIC_CHG_GND; 282 284 info->prev_chg_type = MAX77843_MUIC_CHG_GND; ··· 305 299 } else { 306 300 *attached = true; 307 301 308 - /* Offset|ADC1K|VBVolt| 302 + /* 303 + * Offset|ADC1K|VBVolt| 309 304 * 0x1| 0| 0| USB-HOST 310 305 * 0x1| 0| 1| USB-HOST with VB 311 306 * 0x1| 1| 0| MHL 312 - * 0x1| 1| 1| MHL with VB */ 307 + * 0x1| 1| 1| MHL with VB 308 + */ 313 309 /* Get ADC1K register bit */ 314 310 gnd_type = (info->status[MAX77843_MUIC_STATUS1] & 315 311 MAX77843_MUIC_STATUS1_ADC1K_MASK);
+4 -2
drivers/extcon/extcon-rt8973a.c
··· 142 142 RT8973A_MUIC_ADC_UNKNOWN_ACC_5, 143 143 RT8973A_MUIC_ADC_OPEN = 0x1f, 144 144 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 + */ 147 149 /* |---------|--ADC| */ 148 150 /* | [7:5]|[4:0]| */ 149 151 RT8973A_MUIC_ADC_USB = 0x3f, /* | 001|11111| */
+4 -2
drivers/extcon/extcon-sm5502.c
··· 135 135 SM5502_MUIC_ADC_AUDIO_TYPE1, 136 136 SM5502_MUIC_ADC_OPEN = 0x1f, 137 137 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 + */ 140 142 /* |---------|--ADC| */ 141 143 /* | [7:5]|[4:0]| */ 142 144 SM5502_MUIC_ADC_AUDIO_TYPE1_FULL_REMOTE = 0x3e, /* | 001|11110| */