i2c: core: Allocate temp client on the stack in i2c_detect

The temp client is used only in scope of this function, so there's no
benefit in dynamic allocation.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
This commit is contained in:
Heiner Kallweit 2025-01-07 21:24:29 +01:00 • committed by Wolfram Sang
commit 735668f8e5