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>
This commit is contained in:
Michał Barnaś 2024-02-19 16:32:03 +00:00 committed by Tom Rini
parent c4841ae405
commit 6e0d4a7e02

View File

@ -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)