kernel-hacking-2024-linux-s.../drivers/extcon
Andy Shevchenko 962341b54b extcon: cht-wc: Return from default case to avoid warnings
When we have first case to fall through it's not enough to put
single comment there to satisfy compiler. Instead of doing that,
return fall back value directly from default case.

This to avoid following warnings:

drivers/extcon/extcon-intel-cht-wc.c: In function ‘cht_wc_extcon_get_charger’:
include/linux/device.h:1420:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  _dev_warn(dev, dev_fmt(fmt), ##__VA_ARGS__)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/extcon/extcon-intel-cht-wc.c:148:3: note: in expansion of macro ‘dev_warn’
   dev_warn(ext->dev,
   ^~~~~~~~
drivers/extcon/extcon-intel-cht-wc.c:152:2: note: here
  case CHT_WC_USBSRC_TYPE_SDP:
  ^~~~

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2018-08-28 11:21:15 +09:00
..
devres.c extcon: Correct description to improve the readability 2017-08-16 09:27:55 +09:00
extcon-adc-jack.c extcon: adc-jack: Fix platform_get_irq's error checking 2017-11-27 10:23:47 +09:00
extcon-arizona.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-axp288.c extcon: axp288: Set USB role where necessary 2018-03-22 13:49:28 +01:00
extcon-gpio.c extcon: gpio: Convert to fully use GPIO descriptor 2018-03-21 13:58:09 +09:00
extcon-intel-cht-wc.c extcon: cht-wc: Return from default case to avoid warnings 2018-08-28 11:21:15 +09:00
extcon-intel-int3496.c extcon: int3496: Use proper GPIO include 2018-07-12 09:06:30 +09:00
extcon-max3355.c extcon: max3355: include mod_devicetable.h 2018-07-11 18:17:56 +02:00
extcon-max8997.c extcon: maxim: Add SPDX license identifiers 2018-08-28 11:13:20 +09:00
extcon-max14577.c extcon: maxim: Add SPDX license identifiers 2018-08-28 11:13:20 +09:00
extcon-max77693.c extcon: maxim: Add SPDX license identifiers 2018-08-28 11:13:20 +09:00
extcon-max77843.c extcon: maxim: Add SPDX license identifiers 2018-08-28 11:13:20 +09:00
extcon-palmas.c
extcon-qcom-spmi-misc.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
extcon-rt8973a.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-rt8973a.h
extcon-sm5502.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-sm5502.h
extcon-usb-gpio.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-usbc-cros-ec.c extcon: usbc-cros-ec: Switch to SPDX identifier. 2018-07-12 09:06:31 +09:00
extcon.c extcon: Switch to use kasprintf() instead of open coded 2018-08-28 11:21:14 +09:00
extcon.h USB/PHY patches for 4.15-rc1 2017-11-13 21:14:07 -08:00
Kconfig extcon: axp288: Set USB role where necessary 2018-03-22 13:49:28 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00