linux/drivers/extcon
Dan Carpenter a598af7f02 extcon: Fix signedness bugs about break error handling
Unsigned is never less than zero so this error handling won't work.

Fixes: be052cc877 ('extcon: Fix hang and extcon_get/set_cable_state().')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Roger Quadros <rogerq@ti.com>
[cw00.choi: Change the patch title and fix signedness bug of find_cable_index_by_id() ]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2015-08-10 11:48:57 +09:00
..
extcon-adc-jack.c extcon: Redefine the unique id of supported external connectors without 'enum extcon' type 2015-06-12 17:01:42 -07:00
extcon-arizona.c extcon: arizona: Simplify pdata symantics for micd_dbtime 2015-08-10 11:48:56 +09:00
extcon-axp288.c extcon: Redefine the unique id of supported external connectors without 'enum extcon' type 2015-06-12 17:01:42 -07:00
extcon-gpio.c extcon: Remove optional print_state() function pointer of struct extcon_dev 2015-08-10 11:48:55 +09:00
extcon-max8997.c extcon: Redefine the unique id of supported external connectors without 'enum extcon' type 2015-06-12 17:01:42 -07:00
extcon-max14577.c extcon: Redefine the unique id of supported external connectors without 'enum extcon' type 2015-06-12 17:01:42 -07:00
extcon-max77693.c extcon: Redefine the unique id of supported external connectors without 'enum extcon' type 2015-06-12 17:01:42 -07:00
extcon-max77843.c extcon: max77843: Clear IRQ bits state before request IRQ 2015-08-10 11:48:54 +09:00
extcon-palmas.c extcon: palmas: Remove the mutually_exclusive array 2015-08-10 11:48:55 +09:00
extcon-rt8973a.c extcon: Drop owner assignment from i2c_driver 2015-08-10 11:48:56 +09:00
extcon-rt8973a.h extcon: rt8973a: Add Richtek RT8973A extcon driver 2014-09-22 11:43:08 +09:00
extcon-sm5502.c extcon: Drop owner assignment from i2c_driver 2015-08-10 11:48:56 +09:00
extcon-sm5502.h extcon: sm5502: Move sm5502.h header file to extcon directory 2014-09-22 11:43:08 +09:00
extcon-usb-gpio.c extcon: Redefine the unique id of supported external connectors without 'enum extcon' type 2015-06-12 17:01:42 -07:00
extcon.c extcon: Fix signedness bugs about break error handling 2015-08-10 11:48:57 +09:00
Kconfig extcon: Allow compile test of GPIO consumers if !GPIOLIB 2015-05-19 16:39:06 +09:00
Makefile extcon: axp288: Add axp288 extcon driver support 2015-05-19 16:39:04 +09:00