From patchwork Mon Dec 9 12:00:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899415 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A831215168 for ; Mon, 9 Dec 2024 12:00:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733745643; cv=none; b=ShCPV79PYuJkhIXq/MK31CLTo4KICNCNRJmwIcnI3oagc0UTBg9a+l6drNGxwORy/j9NYO4BY0tW+Ynj1qU4PJSzy14Ki8oXgCZpJLek3whCtUM6HSxWYekzQVpEtnGYoZOFZNEfUKdasLpqMSghCVOYg098Wy98dGuPu1uSa8o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733745643; c=relaxed/simple; bh=pKQFOgVvHvF8uRLGx48niqw4WYJuJEP0QbflMT7oLXc=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=IirFIK9ZucZWunvZl7hsHs4veID3OnKBbCGhYUVTlwsZGM33C+B8OC97+5hUMayx2iS5vSWoyoWgD6O3tBNSDdAAOZ4EAZ+K69Ciicpp1cTAQqJd/0FnKddg4cEY+QVKlQfe5znukirb60Q6/lo2GrgyB2d0UtrlnVOS25XGYWg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Y+P+mljN; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Y+P+mljN" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-aa67bc91f87so20013966b.1 for ; Mon, 09 Dec 2024 04:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733745640; x=1734350440; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=eF65SP8yB+gSSGZtE3l7QFu2YELZzCe75eNTRt9jHx8=; b=Y+P+mljNjLxnpwahK70kkdSffmGkEt/6dxtswdFI2j9kkNh77bacJMm8P/eukGXhQg Xpk/eBXEVUQMCeobPw1smFWnWfD/Kw4ygKj2hNYDVaGxub8pfseeDCMNTE0DJZUnFBOT 5iTAUX5ur9/kHY7KJIUpidy8k5d6LeIRvFoAQ7dBNMBfYIbBuTL3eJc0JBKFedEqKeBq SMxlQGOYktbzftby+96UY8IwP9EnP4NikWabLM+UmR9lrlz3VNLSiIO89CcnOZu257JZ 2vHr9xitbhJHD/FHMsyKC4Eo+s65IgNtyoTR0p7YIbg6l9PERDh+sljowHm4yU2xtyWt qaew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733745640; x=1734350440; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eF65SP8yB+gSSGZtE3l7QFu2YELZzCe75eNTRt9jHx8=; b=X+3o9besYwZ9x5pBB1i9kDDRIxe0KHOIT1C3tHgygdtAxA+Ux+wUNhFqlgs3dnNHdE fzgf82I3ThQ1Xnr/8GefmJnT9k8A5xyfbtgGuziz1jQ8X70mbthb6TJXEHZxN4faRoEe tUT9dHhCZE2agG7bSRwbKDGfJ8hW67d8v2Hcau+Z0+5j967jMnNvPep7EiuDznNGRabQ XXsCLBef14Me56DqNY//AEjCZieTfBCCLQgy0DZ8qQ4DMdyMPLULOWATNgDi1cOFPGPI 0erXRcIDgNMV3Fo3MJ5CMFIZDzOlF6BxrxQpYUyHx/uUIpx60zBT18FAMQu/nOSNBZZ5 F3LQ== X-Gm-Message-State: AOJu0Yz2fyS38k24qix88e9DdqBzzDpqfH8AvGN3ClWUpyUScHb7oM/V Z9kCo6bI5uhZ6PmHrcm+d9BLcbgRMmIffCvtFgf1/LFwXBGT+x/4Io8FpbTYLi8= X-Gm-Gg: ASbGncsAYV/FkXWGm/e2lfzOpMaiNOSpHqXe6BcDd/aDyZxsMWC6oZ1tQZmiQqWE+Qu ReMH3aWlitEnHSdB/DzSFlD+sNzj5lrvgA1Z8xQ18nMuWrUPxtNDtF/FPh1U4vXoZjXj6PuhhTH 3iE8WCOi9wijdn8yYnjC9cJZehqNO4/v+niRORwKy0ZgyXPJ6A2E+dLXEaeaeBPikkpUbx0f/1w cCJFGYsipMo/5iHU5T8gBkKq17o8Jf66I7bT8pzcYmLHLcQKlw28a1RkF8yTW/1dQ== X-Google-Smtp-Source: AGHT+IF+WpItAHMZCkCObJQJIUQLG8YPpxFC9UNwLpAHwB0jPg4phO2uDPMZqJ8G6UoW8qNnR6UVkA== X-Received: by 2002:a17:907:874a:b0:aa6:35b1:5c02 with SMTP id a640c23a62f3a-aa63a207324mr463930666b.9.1733745639874; Mon, 09 Dec 2024 04:00:39 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa6260e33f7sm678589466b.183.2024.12.09.04.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:00:39 -0800 (PST) From: Krzysztof Kozlowski Subject: [PATCH RESEND 0/3] ASoC: codecs: wcd93xx: Simplify locking with guard() Date: Mon, 09 Dec 2024 13:00:27 +0100 Message-Id: <20241209-cleanup-h-guard-of-node-asoc-v1-0-397f6385e4a5@linaro.org> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIANvbVmcC/42NsQ6CMBRFf8W82WfagoJODrI66GgYCn2Fl5CWt EI0hH+34Qscz73JOQtECkwRLrsFAs0c2bsEcr+DtteuI2STGJRQuShVhu1A2k0j9thNOhj0Fp0 3hDr6FqlsBJ3oaGVBkBRjIMufTf+CR/Ws7jeo095zfPvw3aqz3N7/ArNEgSrLz40pbFPY/Dqw0 8EffOigXtf1B5kqpWzRAAAA X-Change-ID: 20240823-cleanup-h-guard-of-node-asoc-e8b0e6e5f17e To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=915; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=pKQFOgVvHvF8uRLGx48niqw4WYJuJEP0QbflMT7oLXc=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVtvjbwJgnPu6xyFntGnwH6PN4A/jgSTLBwwn7 SiSkqIQd++JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bb4wAKCRDBN2bmhouD 13sMD/9XTivHVWPlGJKUfe6Nqb6WDJFokIWNiYlxlnrcJXqXpgfe8jKCKlWERvRcIu/0p75JQFz kMD2FVYaMLCGCDIpjL3NdTMxko2iKVnhPNQ1li3tVLt2G8TSMIGNMToc7iN/mwnMQvPwTrzClUg +Xq/vmY1s5UVDKlhd9Imw/1phgspQKBdG5rdj69TKEnWiwYMfuw+CUzgi2awY5cyYLQQqNHR8TP v60NwIPhJjHtqsWUoN5/6wd98Y+iwfveb+HVsndgebg87BKTta142oDNZvvDGgvZOtt0eTg+Kgc Yv/KUlA5Wopj7KeSaWuh/j2BHnWa19wz9C/eIWTeMP1FOVvbpujk0u/lowwpfXHymyUMNNv11By bXTj0QHemM/6rITgc05LQc+6AjReGILAcaQxIQhZNczHIu4agikfXDaBYnFsDCrzu64v2Vuxuq2 lfQelMybv8Cvpw5nQ2rMTIdq4xkkSlkl3yt2sDn4oz/+qSEIwlXCDCUmB6ADQq+GLIg+RE8CNDh gMA3BjEX9vupVjl0gFinn1rsbKYiW2h+kftWC9CqEQv6j0TZ9G0DpGGdag0dhe8R7LvFP4t/van iyOLCftsEhOpjrQveISVZrAtzUYThCI5/Z73WvAbpCn/l7/tP+3ozRpN50JdvNEYdzykf46301p pSBomVRuQ3kbZdQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Resending, no feedback. Previous: - Link to v1: https://lore.kernel.org/r/20240823-cleanup-h-guard-of-node-asoc-v1-0-2349bd7fb7f4@linaro.org Simplify error handling around locks with guard(). Less gotos needed, drop local 'ret' variable.. Best regards, Krzysztof --- Krzysztof Kozlowski (3): ASoC: codecs: wcd937x: Simplify locking with guard() ASoC: codecs: wcd938x: Simplify locking with guard() ASoC: codecs: wcd939x: Simplify locking with guard() sound/soc/codecs/wcd937x.c | 24 +++++++++++------------- sound/soc/codecs/wcd938x.c | 24 +++++++++++------------- sound/soc/codecs/wcd939x.c | 21 ++++++++------------- 3 files changed, 30 insertions(+), 39 deletions(-) --- base-commit: 0dd030fe5c2e08b61920b0e6e86214ec9a5442cb change-id: 20240823-cleanup-h-guard-of-node-asoc-e8b0e6e5f17e Best regards,