]> www.infradead.org Git - users/dwmw2/linux.git/commit
i2c: core: Allocate temp client on the stack in i2c_detect
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 7 Jan 2025 20:24:29 +0000 (21:24 +0100)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 9 Jan 2025 10:23:27 +0000 (11:23 +0100)
commit735668f8e5c99698100e9df1e296f76a51c3c83a
treed91d4d5a0c99fd9dcb24cd6d5c722b658ca7cd78
parent7fd9d28d1a6b1bab4559e472e3d552b5c77e08bb
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>
drivers/i2c/i2c-core-base.c