diff options
author | Adrian Fiergolski | 2022-01-11 19:05:29 +0100 |
---|---|---|
committer | Heiko Schocher | 2022-03-23 07:27:37 +0100 |
commit | 75967a24f9a3d86e0c2e9c937400498d47ccc3ef (patch) | |
tree | 4483df505580f5de8873c61e1aded62c79fc4043 /drivers | |
parent | 5f68470d69f853b1652ebe93525b60064717fe2e (diff) |
misc: atsha204a: return timeout from wakeup function
If the maximum number of wake-up attempts is exceeded, return -ETIMEDOUT.
Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/atsha204a-i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index 715dabb2799..9d069fb33c9 100644 --- a/drivers/misc/atsha204a-i2c.c +++ b/drivers/misc/atsha204a-i2c.c @@ -240,10 +240,10 @@ int atsha204a_wakeup(struct udevice *dev) } debug("success\n"); - break; + return 0; } - return 0; + return -ETIMEDOUT; } int atsha204a_idle(struct udevice *dev) |