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

extcon: max77693: Use HOST term to express USB-HOST cable instead of OTG term

This patch unifies the term called 'USB_OTG' and 'USB_HOST'
into USB_HOST. OTG(On-The-Go) function supports USB host and
this driver sents 'USB-Host event. So, unifies term to USB_HOST.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
[cw00.choi: Fix patch title to indicate the correct meaning of patch]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Jaewon Kim and committed by
Chanwoo Choi
4c883abe 4f0be26a

+10 -10
+10 -10
drivers/extcon/extcon-max77693.c
··· 190 190 /* The below accessories have same ADC value so ADCLow and 191 191 ADC1K bit is used to separate specific accessory */ 192 192 /* ADC|VBVolot|ADCLow|ADC1K| */ 193 - MAX77693_MUIC_GND_USB_OTG = 0x100, /* 0x0| 0| 0| 0| */ 194 - MAX77693_MUIC_GND_USB_OTG_VB = 0x104, /* 0x0| 1| 0| 0| */ 193 + MAX77693_MUIC_GND_USB_HOST = 0x100, /* 0x0| 0| 0| 0| */ 194 + MAX77693_MUIC_GND_USB_HOST_VB = 0x104, /* 0x0| 1| 0| 0| */ 195 195 MAX77693_MUIC_GND_AV_CABLE_LOAD = 0x102,/* 0x0| 0| 1| 0| */ 196 196 MAX77693_MUIC_GND_MHL = 0x103, /* 0x0| 0| 1| 1| */ 197 197 MAX77693_MUIC_GND_MHL_VB = 0x107, /* 0x0| 1| 1| 1| */ ··· 403 403 404 404 /** 405 405 * [0x1|VBVolt|ADCLow|ADC1K] 406 - * [0x1| 0| 0| 0] USB_OTG 407 - * [0x1| 1| 0| 0] USB_OTG_VB 406 + * [0x1| 0| 0| 0] USB_HOST 407 + * [0x1| 1| 0| 0] USB_HSOT_VB 408 408 * [0x1| 0| 1| 0] Audio Video cable with load 409 409 * [0x1| 0| 1| 1] MHL without charging cable 410 410 * [0x1| 1| 1| 1] MHL with charging cable ··· 523 523 * - Support charging and data connection through micro-usb port 524 524 * if USB cable is connected between target and host 525 525 * device. 526 - * - Support OTG device (Mouse/Keyboard) 526 + * - Support OTG(On-The-Go) device (Ex: Mouse/Keyboard) 527 527 */ 528 528 ret = max77693_muic_set_path(info, info->path_usb, attached); 529 529 if (ret < 0) ··· 609 609 MAX77693_CABLE_GROUP_ADC_GND, &attached); 610 610 611 611 switch (cable_type_gnd) { 612 - case MAX77693_MUIC_GND_USB_OTG: 613 - case MAX77693_MUIC_GND_USB_OTG_VB: 614 - /* USB_OTG, PATH: AP_USB */ 612 + case MAX77693_MUIC_GND_USB_HOST: 613 + case MAX77693_MUIC_GND_USB_HOST_VB: 614 + /* USB_HOST, PATH: AP_USB */ 615 615 ret = max77693_muic_set_path(info, CONTROL1_SW_USB, attached); 616 616 if (ret < 0) 617 617 return ret; ··· 704 704 705 705 switch (cable_type) { 706 706 case MAX77693_MUIC_ADC_GROUND: 707 - /* USB_OTG/MHL/Audio */ 707 + /* USB_HOST/MHL/Audio */ 708 708 max77693_muic_adc_ground_handler(info); 709 709 break; 710 710 case MAX77693_MUIC_ADC_FACTORY_MODE_USB_OFF: ··· 886 886 * - Support charging and data connection through micro- 887 887 * usb port if USB cable is connected between target 888 888 * and host device 889 - * - Support OTG device (Mouse/Keyboard) 889 + * - Support OTG(On-The-Go) device (Ex: Mouse/Keyboard) 890 890 */ 891 891 ret = max77693_muic_set_path(info, info->path_usb, 892 892 attached);