From patchwork Tue Jul 9 12:59:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13727878 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 336FDC3DA41 for ; Tue, 9 Jul 2024 13:00:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zyMaA2ktAP79nx6/5Mxk0l1yWWoFwZUP+h8kjbjB7+c=; b=wb9xre2SwxTNTK ki0oQag8wsnpOP+H1IEWOUz/kadEWxQKuqD+ULGxeerPnKuud/tDbAwm92cYBQNYEo+4aq7iA5Mc3 ArDeptHW5DZdiNqrIWu+v3myrQElXn1Jt9bTAXwR1ueox3yzBA5Jth1ZZLZ69ukTJM9QcrIgrJIx2 NV5eIuZZ+CTUObTxbatng2ROdPFDPDdOQCYqhbx81DSOZ5Puv0YXD13er5c3uWNVyGdwgPM98ziyX iaXb6P2lpujqySBiRQfcZ4+jI/plI+YWYJq28gm+Nr57VzPl0t2bSlSUNhmooKQ3YEEZVp10u5o69 snVWarpMD9zCBafpczhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRAS6-00000007E07-0luI; Tue, 09 Jul 2024 13:00:14 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRARn-00000007Dpa-3XCe for linux-arm-kernel@lists.infradead.org; Tue, 09 Jul 2024 12:59:57 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a77dc08db60so441770366b.1 for ; Tue, 09 Jul 2024 05:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720529994; x=1721134794; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=zyMaA2ktAP79nx6/5Mxk0l1yWWoFwZUP+h8kjbjB7+c=; b=Od/Bh/V4EiI/VXvXD8fUn9iO1yCdP6VaaAgD+uJpbJ97pT0pfD7SRMyh2+qYwKsaKH 0vWMVPGGUeP8xf3Njsu+jbc1yVEyaBXUceO/5EZBn4I/D4JqcR2BWM9DsINMsOvs8gHC 8hJXvesplVyBya7Xfi1XnaYnbulxmIT9CG2zdMK6tyt/pQJztXQ00BruOr7txxV5VxC0 AVM1O/o9RwnzEN+12dPUhlfDKYm5xEwmzM8gq7qo5kHUO4QKXXQ0GXj6bM+C7jG/xgPJ gJM+yQJen/Ihi7yLVjgsWWoL0a1RITx/fKlzrGgZOozH7uD4sAPdVlvu49nWIdtsFGKR 00Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720529994; x=1721134794; 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=zyMaA2ktAP79nx6/5Mxk0l1yWWoFwZUP+h8kjbjB7+c=; b=uidYI/gVieGhvsTOWmoFywMh5/40hE1fc6kxGiHLuKXIyQtmyneruYSht7Y28ii3H8 35FGWDKmZuHzPTrhJcSQKf1UGVdcTCADiksTc5A2gj4MorA7IdzUkRfqdxWV00VFIp2s 7RUnUpOvNz26JtYzFWRAZwe0jAsjVkHPV2nuwJtNKHmvXfZ4AFznoO5orakL4bT326Vu 5I/QpbDDLA3s5Rg7Bja8fZd5R2w3XggEnePrjgMQALaJp+sTNS2zW7unKVcr3x6JZKwT 5vfh/9QQQFFg2wakSLo1QoiLtKCQD16ogcgTTHipzQ6vD++bW+3mRHKc5SlVkpRyQsb6 VZRQ== X-Forwarded-Encrypted: i=1; AJvYcCW1GYkKGTh60/XSUtf30qY4umd95pCSwkSsZqwTJsJsq/bocx7k9oUgM0ofX2wjZd6THnXuMMz14kCD+aMTdLUYvPlWYGzgpGMmj1EO6/fMQ232ld4= X-Gm-Message-State: AOJu0YyhOBxOwqaufI23ds+f/Q76lHpA0B5+Dxph7ULnJ1I8Ebi7QKjF qMloj2DgULwTjd2GQw9yqX/MnTulVrV4EjiCuOeoUUYhVBypDnTV594kdAsGBoY= X-Google-Smtp-Source: AGHT+IFQIeObXuWwjzPQ5P94Pal4hLbHGTYuZ6cJpzJB5yZLLI58o/F8sFx6F5zODpmX82oPOJ7QOQ== X-Received: by 2002:a17:906:68c9:b0:a77:e48d:bb2 with SMTP id a640c23a62f3a-a780b6b17cfmr198118866b.17.1720529993825; Tue, 09 Jul 2024 05:59:53 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a6e157bsm76643166b.80.2024.07.09.05.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 05:59:53 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH 00/12] thermal/drivers: simplify probe() Date: Tue, 09 Jul 2024 14:59:30 +0200 Message-Id: <20240709-thermal-probe-v1-0-241644e2b6e0@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIADI0jWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDcwNL3ZKM1KLcxBzdgqL8pFTdRHMTcwND49QUI4sUJaCegqLUtMwKsHn RsbW1AIrkdShfAAAA To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Alim Akhtar , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Amit Kucheria , Thara Gopinath Cc: linux-pm@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, linux-arm-msm@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1663; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=kgvsfjbzeej3OYxVir+9/eTJEO88akNuKkqf+hwCQrw=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmjTQ5RRSnjbiXlLPhl5LMO5ohaeNBNwWB8vx7W nTbN1nTmLCJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZo00OQAKCRDBN2bmhouD 1wRbD/4zSxySS/s259DEhJkaDdc25d/x90eolV0xLjn69nZ8s0mzMdnlWQ4MIZZBUVetoXQq0rA UAhaAB2ZuzW4bnol7GTHITMuTSEE3ACJ0Vx0cae5TvQ4uK5LItk9N8xvQRsH/z9GBIyfWs55B7E 8z+yRBcm/B79zJPKMNLikxQs3y1GZy7Tip8LpRaQCvJ/X/tpx4ZffAMMcklbUBaA4PvNczr31MM j278W4BnIuJsg32T8+FAHLXVz0XTc34BzqYcgdFlC8eCsN6usty2kRrgmwNI1AElEdK/PIf9L5w +uMCWChYVNtW0Rrq+eF95VI0hXgdgGynF3417buGiRaYhLr3WP3zPc/tm/Qby+d4SvYXya6d1ii WX+ytupuXnatXPeMuUFJs1pZ78ZcVzED7NAILN+09KyXdgnzeuq9Py7V7F0T4yH3VQQM69N4Z6S RKGJ+b1wlcFwfnAMjZqYV9MZOJbKtp+VQZD/bESWhBq+NVECBwdnKQM/Ty8SkW7cKQ1GG5LvLfo fFiNLDcQEoMyRaF0Mor1lZYcGGKO+GUFafTA92oL6eUjBIKtWNJd99xa0a7i6WnA9za/aF1Jhor IwQOu/FpEkFjyMZZYlJjLlr5d2DMIC4TlAlVp9d3KrB1XxeAoJoeHeIu8Y7wPXNL0wVd7Foetw8 MrCiqIxYJ4hW7eA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240709_055955_918044_492F29CF X-CRM114-Status: UNSURE ( 7.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Simplify error handling in probe() and also fix one possible issue in remove(). Best regards, Krzysztof --- Krzysztof Kozlowski (12): thermal/drivers/broadcom: fix race between removal and clock disable thermal/drivers/broadcom: simplify probe() with local dev variable thermal/drivers/broadcom: simplify with dev_err_probe() thermal/drivers/exynos: simplify probe() with local dev variable thermal/drivers/exynos: simplify with dev_err_probe() thermal/drivers/hisi: simplify with dev_err_probe() thermal/drivers/imx: simplify probe() with local dev variable thermal/drivers/imx: simplify with dev_err_probe() thermal/drivers/qcom-spmi-adc-tm5: simplify with dev_err_probe() thermal/drivers/qcom-tsens: simplify with dev_err_probe() thermal/drivers/generic-adc: simplify probe() with local dev variable thermal/drivers/generic-adc: simplify with dev_err_probe() drivers/thermal/broadcom/bcm2835_thermal.c | 49 +++++++-------------------- drivers/thermal/hisi_thermal.c | 9 ++--- drivers/thermal/imx_thermal.c | 42 +++++++++++------------ drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 9 ++--- drivers/thermal/qcom/tsens.c | 8 ++--- drivers/thermal/samsung/exynos_tmu.c | 54 +++++++++++++----------------- drivers/thermal/thermal-generic-adc.c | 27 +++++++-------- 7 files changed, 76 insertions(+), 122 deletions(-) --- base-commit: 2e0171396caa83c9d908ba2676ba59bce333b550 change-id: 20240709-thermal-probe-a747013ed28d Best regards,