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

Configure Feed

Select the types of activity you want to include in your feed.

usb: typec: tcpm/tcpci_maxim: clarify a comment

We loop while the status is != 0, so rephrase the comment slightly for
clarity.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240710-tcpc-cleanup-v1-2-0ec1f41f4263@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

André Draszik and committed by
Greg Kroah-Hartman
0943ce2b 07a83512

+1 -1
+1 -1
drivers/usb/typec/tcpm/tcpci_maxim_core.c
··· 397 397 } 398 398 while (status) { 399 399 irq_return = _max_tcpci_irq(chip, status); 400 - /* Do not return if the ALERT is already set. */ 400 + /* Do not return if a (new) ALERT is set (again). */ 401 401 ret = max_tcpci_read16(chip, TCPC_ALERT, &status); 402 402 if (ret < 0) 403 403 break;