From 6e0d4a7e02fa6d82f70fa74b9be564301111c462 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Barna=C5=9B?= Date: Mon, 19 Feb 2024 16:32:03 +0000 Subject: [PATCH] misc: atsha204a: fix sleep function MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix the sleep function to issue the sleep command instead of idle one. Signed-off-by: Michał Barnaś --- drivers/misc/atsha204a-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5