[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230307065603.2253054-1-u.kleine-koenig@pengutronix.de>
Date: Tue, 7 Mar 2023 07:56:01 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
Guenter Roeck <linux@...ck-us.net>
Cc: Alim Akhtar <alim.akhtar@...sung.com>,
linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, linux-watchdog@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel@...gutronix.de
Subject: [PATCH v2 0/2] watchdog: s3c2410_wdt: Simplify using dev_err_probe()
Hello,
changes since (implicit) v1, sent with Message-Id:
20230306090919.2206871-1-u.kleine-koenig@...gutronix.de:
- Rework patch #1 to keep s3c2410_get_wdt_drv_data() as a separate
function. The return value has to change however to make effective
use of dev_err_probe(). (I thought about using
return ERR_PTR(dev_err_probe(...));
but this looks too ugly and that's less effective because then
dev_err_probe cannot be compiled into a tail call.)
- Squash patches #2 and #3. This destroys the pretty bloatometer
statistic, in fact bloatometer diagnoses that the code gets bigger.
I'm a bit surprised but didn't try to understand it. I assume that's
because the additional parameter that dev_err_probe has to get over
dev_err is the culprit. Still given that the error code is now
included in the error message this is an IMHO nice patch.
Now that Gunter likes patch #1 better than the one from v1, I wonder
about his position about patch #2.
Best regards
Uwe
Uwe Kleine-König (2):
watchdog: s3c2410: Make s3c2410_get_wdt_drv_data() return an int
watchdog: s3c2410_wdt: Simplify using dev_err_probe()
drivers/watchdog/s3c2410_wdt.c | 47 +++++++++++++++-------------------
1 file changed, 20 insertions(+), 27 deletions(-)
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
prerequisite-patch-id: 775bdd863307268e1ef16250bf2f40862637b453
prerequisite-patch-id: 924ddfbe583e97e7c9a46c2460ecbc88c29ee319
--
2.39.1
Powered by blists - more mailing lists