]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/extcon/extcon-max77843.c
KVM: SVM: Move spec control call after restore of GS
[mirror_ubuntu-artful-kernel.git] / drivers / extcon / extcon-max77843.c
index 5d11fdf36e9424b9e03eb484098e4752f147be4c..6e722d552cf101d01986749bab89de68d47898f8 100644 (file)
@@ -97,8 +97,10 @@ enum max77843_muic_accessory_type {
        MAX77843_MUIC_ADC_AUDIO_DEVICE_TYPE1,
        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| */
        MAX77843_MUIC_GND_USB_HOST = 0x100,     /*    0x1|    0|     0| */
        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,
                /* Check GROUND accessory with charger cable */
                if (adc == MAX77843_MUIC_ADC_GROUND) {
                        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
-                                * connected */
+                                * connected.
+                                */
                                *attached = false;
                                cable_type = info->prev_chg_type;
                                info->prev_chg_type = MAX77843_MUIC_CHG_NONE;
                        } 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;
                                cable_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,
                } else {
                        *attached = true;
 
-                       /* Offset|ADC1K|VBVolt|
+                       /*
+                        * Offset|ADC1K|VBVolt|
                         *    0x1|    0|     0| USB-HOST
                         *    0x1|    0|     1| USB-HOST with VB
                         *    0x1|    1|     0| MHL
-                        *    0x1|    1|     1| MHL with VB */
+                        *    0x1|    1|     1| MHL with VB
+                        */
                        /* Get ADC1K register bit */
                        gnd_type = (info->status[MAX77843_MUIC_STATUS1] &
                                        MAX77843_MUIC_STATUS1_ADC1K_MASK);