diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-07-12 17:05:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-31 11:39:47 +0300 |
commit | 3c526089a663e25ac78b6a61d84a52a83680d0c3 (patch) | |
tree | 4194dcb32a3bd1e767e246425372f9d00c68d262 /lib/math/int_log.c | |
parent | e885f5f1f2b43575aa8e4e31404132d77d6663d1 (diff) | |
download | linux-3c526089a663e25ac78b6a61d84a52a83680d0c3.tar.xz |
usb: typec: tcpci: Fix error code in tcpci_check_std_output_cap()
The tcpci_check_std_output_cap() function is supposed to return negative
error codes but it's declared as type bool so the error handling doesn't
work. Declare it as an int instead.
Fixes: 62ce9ef14797 ("usb: typec: tcpci: add support to set connector orientation")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.kernel.org/r/b0880888-6719-4614-91fc-8ee63b71d304@stanley.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/math/int_log.c')
0 files changed, 0 insertions, 0 deletions