summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorMichał Barnaś <barnas@google.com>2024-02-19 16:32:03 +0000
committerTom Rini <trini@konsulko.com>2024-03-05 08:08:26 -0500
commit6e0d4a7e02fa6d82f70fa74b9be564301111c462 (patch)
treed4082c7f849d79f6a9225d274684860e3ec012be /drivers/misc
parentc4841ae4059f5eb46af38f53793f772e3dac140b (diff)
downloadu-boot-6e0d4a7e02fa6d82f70fa74b9be564301111c462.tar.gz
u-boot-6e0d4a7e02fa6d82f70fa74b9be564301111c462.tar.bz2
u-boot-6e0d4a7e02fa6d82f70fa74b9be564301111c462.zip
misc: atsha204a: fix sleep function
Fix the sleep function to issue the sleep command instead of idle one. Signed-off-by: Michał Barnaś <barnas@google.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/atsha204a-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c
index ab83bbc3e9..29daefb2a5 100644
--- a/drivers/misc/atsha204a-i2c.c
+++ b/drivers/misc/atsha204a-i2c.c
@@ -139,7 +139,7 @@ int atsha204a_idle(struct udevice *dev)
int atsha204a_sleep(struct udevice *dev)
{
int res;
- u8 req = ATSHA204A_FUNC_IDLE;
+ u8 req = ATSHA204A_FUNC_SLEEP;
res = atsha204a_send(dev, &req, 1);
if (res)