usb: typec: tcpm/tcpci_maxim: clarify a comment
authorAndré Draszik <andre.draszik@linaro.org>
Wed, 10 Jul 2024 10:36:09 +0000 (11:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Aug 2024 10:49:30 +0000 (12:49 +0200)
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>
drivers/usb/typec/tcpm/tcpci_maxim_core.c

index 760e2f92b958dc9c6057c1d2ccf989d63e40e3a4..441344fd0201559c2cf0fe8190ad59cbf6df8e20 100644 (file)
@@ -397,7 +397,7 @@ static irqreturn_t max_tcpci_irq(int irq, void *dev_id)
        }
        while (status) {
                irq_return = _max_tcpci_irq(chip, status);
-               /* Do not return if the ALERT is already set. */
+               /* Do not return if a (new) ALERT is set (again). */
                ret = max_tcpci_read16(chip, TCPC_ALERT, &status);
                if (ret < 0)
                        break;