]> Gentwo Git Trees - linux/.git/commit
i2c: amd: Switch to guard(mutex)
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Mon, 17 Feb 2025 12:47:08 +0000 (18:17 +0530)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 18 Feb 2025 22:18:59 +0000 (23:18 +0100)
commit4e59960996b8ee7330dfc5d229360d88baf0ba3c
tree9485a2237e6321c93e327766e20411fb60023761
parent3034688ef9a87f38922b485d6907a26a6c575f11
i2c: amd: Switch to guard(mutex)

Instead of using the 'goto label; mutex_unlock()' pattern use
'guard(mutex)' which will release the mutex when it goes out of scope.

Co-developed-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250217124709.3121848-1-Shyam-sundar.S-k@amd.com
drivers/i2c/busses/i2c-designware-amdpsp.c