extcon: int3496: Use gpiod_get instead of gpiod_get_index

Now that we've an acpi mapping table we should be using gpiod_get
instead of gpiod_get_index.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by Hans de Goede and committed by Chanwoo Choi 408c5b41 059c7874

Changed files
+3 -9
drivers
+3 -9
drivers/extcon/extcon-intel-int3496.c
··· 108 108 data->dev = dev; 109 109 INIT_DELAYED_WORK(&data->work, int3496_do_usb_id); 110 110 111 - data->gpio_usb_id = devm_gpiod_get_index(dev, "id", 112 - INT3496_GPIO_USB_ID, 113 - GPIOD_IN); 111 + data->gpio_usb_id = devm_gpiod_get(dev, "id", GPIOD_IN); 114 112 if (IS_ERR(data->gpio_usb_id)) { 115 113 ret = PTR_ERR(data->gpio_usb_id); 116 114 dev_err(dev, "can't request USB ID GPIO: %d\n", ret); ··· 121 123 return data->usb_id_irq; 122 124 } 123 125 124 - data->gpio_vbus_en = devm_gpiod_get_index(dev, "vbus", 125 - INT3496_GPIO_VBUS_EN, 126 - GPIOD_ASIS); 126 + data->gpio_vbus_en = devm_gpiod_get(dev, "vbus", GPIOD_ASIS); 127 127 if (IS_ERR(data->gpio_vbus_en)) 128 128 dev_info(dev, "can't request VBUS EN GPIO\n"); 129 129 130 - data->gpio_usb_mux = devm_gpiod_get_index(dev, "mux", 131 - INT3496_GPIO_USB_MUX, 132 - GPIOD_ASIS); 130 + data->gpio_usb_mux = devm_gpiod_get(dev, "mux", GPIOD_ASIS); 133 131 if (IS_ERR(data->gpio_usb_mux)) 134 132 dev_info(dev, "can't request USB MUX GPIO\n"); 135 133