Commit af57fa4d authored by Srikant Ritolia's avatar Srikant Ritolia Committed by Chanwoo Choi

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: default avatarSrikant Ritolia <s.ritolia@samsung.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent e7d9dd5a
...@@ -531,8 +531,10 @@ static int max14577_parse_irq(struct max14577_muic_info *info, int irq_type) ...@@ -531,8 +531,10 @@ static int max14577_parse_irq(struct max14577_muic_info *info, int irq_type)
case MAX14577_IRQ_INT1_ADC: case MAX14577_IRQ_INT1_ADC:
case MAX14577_IRQ_INT1_ADCLOW: case MAX14577_IRQ_INT1_ADCLOW:
case MAX14577_IRQ_INT1_ADCERR: case MAX14577_IRQ_INT1_ADCERR:
/* Handle all of accessory except for /*
type of charger accessory */ * Handle all of accessory except for
* type of charger accessory.
*/
info->irq_adc = true; info->irq_adc = true;
return 1; return 1;
case MAX14577_IRQ_INT2_CHGTYP: case MAX14577_IRQ_INT2_CHGTYP:
......
...@@ -188,8 +188,10 @@ enum max77693_muic_acc_type { ...@@ -188,8 +188,10 @@ enum max77693_muic_acc_type {
MAX77693_MUIC_ADC_AUDIO_MODE_REMOTE, MAX77693_MUIC_ADC_AUDIO_MODE_REMOTE,
MAX77693_MUIC_ADC_OPEN, MAX77693_MUIC_ADC_OPEN,
/* The below accessories have same ADC value so ADCLow and /*
ADC1K bit is used to separate specific accessory */ * The below accessories have same ADC value so ADCLow and
* ADC1K bit is used to separate specific accessory.
*/
/* ADC|VBVolot|ADCLow|ADC1K| */ /* ADC|VBVolot|ADCLow|ADC1K| */
MAX77693_MUIC_GND_USB_HOST = 0x100, /* 0x0| 0| 0| 0| */ MAX77693_MUIC_GND_USB_HOST = 0x100, /* 0x0| 0| 0| 0| */
MAX77693_MUIC_GND_USB_HOST_VB = 0x104, /* 0x0| 1| 0| 0| */ 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) ...@@ -970,8 +972,10 @@ static void max77693_muic_irq_work(struct work_struct *work)
case MAX77693_MUIC_IRQ_INT1_ADC_LOW: case MAX77693_MUIC_IRQ_INT1_ADC_LOW:
case MAX77693_MUIC_IRQ_INT1_ADC_ERR: case MAX77693_MUIC_IRQ_INT1_ADC_ERR:
case MAX77693_MUIC_IRQ_INT1_ADC1K: case MAX77693_MUIC_IRQ_INT1_ADC1K:
/* Handle all of accessory except for /*
type of charger accessory */ * Handle all of accessory except for
* type of charger accessory.
*/
ret = max77693_muic_adc_handler(info); ret = max77693_muic_adc_handler(info);
break; break;
case MAX77693_MUIC_IRQ_INT2_CHGTYP: case MAX77693_MUIC_IRQ_INT2_CHGTYP:
......
...@@ -97,8 +97,10 @@ enum max77843_muic_accessory_type { ...@@ -97,8 +97,10 @@ enum max77843_muic_accessory_type {
MAX77843_MUIC_ADC_AUDIO_DEVICE_TYPE1, MAX77843_MUIC_ADC_AUDIO_DEVICE_TYPE1,
MAX77843_MUIC_ADC_OPEN, MAX77843_MUIC_ADC_OPEN,
/* The blow accessories should check /*
not only ADC value but also ADC1K and VBVolt value. */ * The below accessories should check
* not only ADC value but also ADC1K and VBVolt value.
*/
/* Offset|ADC1K|VBVolt| */ /* Offset|ADC1K|VBVolt| */
MAX77843_MUIC_GND_USB_HOST = 0x100, /* 0x1| 0| 0| */ MAX77843_MUIC_GND_USB_HOST = 0x100, /* 0x1| 0| 0| */
MAX77843_MUIC_GND_USB_HOST_VB = 0x101, /* 0x1| 0| 1| */ 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, ...@@ -265,16 +267,20 @@ static int max77843_muic_get_cable_type(struct max77843_muic_info *info,
/* Check GROUND accessory with charger cable */ /* Check GROUND accessory with charger cable */
if (adc == MAX77843_MUIC_ADC_GROUND) { if (adc == MAX77843_MUIC_ADC_GROUND) {
if (chg_type == MAX77843_MUIC_CHG_NONE) { if (chg_type == MAX77843_MUIC_CHG_NONE) {
/* The following state when charger cable is /*
* The following state when charger cable is
* disconnected but the GROUND accessory still * disconnected but the GROUND accessory still
* connected */ * connected.
*/
*attached = false; *attached = false;
cable_type = info->prev_chg_type; cable_type = info->prev_chg_type;
info->prev_chg_type = MAX77843_MUIC_CHG_NONE; info->prev_chg_type = MAX77843_MUIC_CHG_NONE;
} else { } else {
/* The following state when charger cable is /*
* connected on the GROUND accessory */ * The following state when charger cable is
* connected on the GROUND accessory.
*/
*attached = true; *attached = true;
cable_type = MAX77843_MUIC_CHG_GND; cable_type = MAX77843_MUIC_CHG_GND;
info->prev_chg_type = MAX77843_MUIC_CHG_GND; info->prev_chg_type = MAX77843_MUIC_CHG_GND;
...@@ -299,11 +305,13 @@ static int max77843_muic_get_cable_type(struct max77843_muic_info *info, ...@@ -299,11 +305,13 @@ static int max77843_muic_get_cable_type(struct max77843_muic_info *info,
} else { } else {
*attached = true; *attached = true;
/* Offset|ADC1K|VBVolt| /*
* Offset|ADC1K|VBVolt|
* 0x1| 0| 0| USB-HOST * 0x1| 0| 0| USB-HOST
* 0x1| 0| 1| USB-HOST with VB * 0x1| 0| 1| USB-HOST with VB
* 0x1| 1| 0| MHL * 0x1| 1| 0| MHL
* 0x1| 1| 1| MHL with VB */ * 0x1| 1| 1| MHL with VB
*/
/* Get ADC1K register bit */ /* Get ADC1K register bit */
gnd_type = (info->status[MAX77843_MUIC_STATUS1] & gnd_type = (info->status[MAX77843_MUIC_STATUS1] &
MAX77843_MUIC_STATUS1_ADC1K_MASK); MAX77843_MUIC_STATUS1_ADC1K_MASK);
......
...@@ -142,8 +142,10 @@ enum rt8973a_muic_acc_type { ...@@ -142,8 +142,10 @@ enum rt8973a_muic_acc_type {
RT8973A_MUIC_ADC_UNKNOWN_ACC_5, RT8973A_MUIC_ADC_UNKNOWN_ACC_5,
RT8973A_MUIC_ADC_OPEN = 0x1f, RT8973A_MUIC_ADC_OPEN = 0x1f,
/* The below accessories has same ADC value (0x1f). /*
So, Device type1 is used to separate specific accessory. */ * The below accessories has same ADC value (0x1f).
* So, Device type1 is used to separate specific accessory.
*/
/* |---------|--ADC| */ /* |---------|--ADC| */
/* | [7:5]|[4:0]| */ /* | [7:5]|[4:0]| */
RT8973A_MUIC_ADC_USB = 0x3f, /* | 001|11111| */ RT8973A_MUIC_ADC_USB = 0x3f, /* | 001|11111| */
......
...@@ -135,8 +135,10 @@ enum sm5502_muic_acc_type { ...@@ -135,8 +135,10 @@ enum sm5502_muic_acc_type {
SM5502_MUIC_ADC_AUDIO_TYPE1, SM5502_MUIC_ADC_AUDIO_TYPE1,
SM5502_MUIC_ADC_OPEN = 0x1f, SM5502_MUIC_ADC_OPEN = 0x1f,
/* The below accessories have same ADC value (0x1f or 0x1e). /*
So, Device type1 is used to separate specific accessory. */ * The below accessories have same ADC value (0x1f or 0x1e).
* So, Device type1 is used to separate specific accessory.
*/
/* |---------|--ADC| */ /* |---------|--ADC| */
/* | [7:5]|[4:0]| */ /* | [7:5]|[4:0]| */
SM5502_MUIC_ADC_AUDIO_TYPE1_FULL_REMOTE = 0x3e, /* | 001|11110| */ SM5502_MUIC_ADC_AUDIO_TYPE1_FULL_REMOTE = 0x3e, /* | 001|11110| */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment