aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/core.h
diff options
context:
space:
mode:
authorThéo Lebrun <[email protected]>2025-02-05 17:36:48 +0000
committerGreg Kroah-Hartman <[email protected]>2025-03-14 08:18:02 +0000
commit0bde749c58c72405c54a1eabf6266a0273377226 (patch)
tree65c5ba31c80a53f6c93909d9d7a41fff7aa28a99 /drivers/usb/cdns3/core.h
parentusb: xhci: tegra: rename `runtime` boolean to `is_auto_runtime` (diff)
downloadkernel-0bde749c58c72405c54a1eabf6266a0273377226.tar.gz
kernel-0bde749c58c72405c54a1eabf6266a0273377226.zip
usb: cdns3: rename hibernated argument of role->resume() to lost_power
The cdns_role_driver->resume() callback takes a second boolean argument named `hibernated` in its implementations. This is mistaken; the only potential caller is: int cdns_resume(struct cdns *cdns) { /* ... */ if (cdns->roles[cdns->role]->resume) cdns->roles[cdns->role]->resume(cdns, cdns_power_is_lost(cdns)); return 0; } The argument can be true in cases outside of return from hibernation. Reflect the true meaning by renaming both arguments to `lost_power`. Signed-off-by: Théo Lebrun <[email protected]> Acked-by: Peter Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.h')
-rw-r--r--drivers/usb/cdns3/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/core.h b/drivers/usb/cdns3/core.h
index 57d47348dc19..921cccf1ca9d 100644
--- a/drivers/usb/cdns3/core.h
+++ b/drivers/usb/cdns3/core.h
@@ -30,7 +30,7 @@ struct cdns_role_driver {
int (*start)(struct cdns *cdns);
void (*stop)(struct cdns *cdns);
int (*suspend)(struct cdns *cdns, bool do_wakeup);
- int (*resume)(struct cdns *cdns, bool hibernated);
+ int (*resume)(struct cdns *cdns, bool lost_power);
const char *name;
#define CDNS_ROLE_STATE_INACTIVE 0
#define CDNS_ROLE_STATE_ACTIVE 1