Message ID | 20230306170901.2232323-1-u.kleine-koenig@pengutronix.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1969391wrd; Mon, 6 Mar 2023 09:24:20 -0800 (PST) X-Google-Smtp-Source: AK7set9sFjHTsrbxOTfIp2jL8jtGBvgReSJ9W2GR20/dhgEa9se66coGY51c7+Yp/oykuxhO7CQ+ X-Received: by 2002:a05:6a20:734f:b0:cd:26b2:ee17 with SMTP id v15-20020a056a20734f00b000cd26b2ee17mr13194173pzc.36.1678123459813; Mon, 06 Mar 2023 09:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678123459; cv=none; d=google.com; s=arc-20160816; b=Z/E8vpxHo8resKkiYNZcF0k86V2p6Yb9l/6KURmp6DYdJIzlPxwgcgrKhnwPv/Hhoa hAd8BHmNgmlEj57Z3KAHUtspeLaHy8ezUHBT4xcLQpZ8qAUBbF3PzemLEBsF2HmUL1JF 7GlXNQaIualTpo8AyRVqQG7I2uJJqRW0CNkX4XRxEWTjj2cFvzRu9fE9rKi+eSjL8jYH KzWApap3NfkCQHDtn5EB35XYE6Edjov7/paiwFdSN8mH0MiK/IZJYbleFEvJeIOf6OMa /41Mu/M2yLLeOY4IViYkLMPtHlWiFb7Oa4M14T0WtIAOhG+GFtxeADimk6ZCqtgrbLEz KsYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=m8lOtO1lqvDgOZwcWoT4JUkEuluUGkn0S+S8gFXpY54=; b=KS6kKW838DUSkLeQIAgQL32Y6I2yDRazyUIKXEnGSZI3Z6GJuJeqKuzwUasuOrvYFZ 9cfHlRRTnPHHyfvYa4asenm2G+Bmou+H0M9CsXhUccKb/ZfWYOGELxwjtceRfq85jZ6T vdXE/9jmcObJOiNAWagwcc5bUS8dCpnInXoOZshgwvPbL1Ll+GAhzN3iW9a4MyA9jnAP PcPZkEXGeIi/e922JiGnLmM4qziUOPwJkmYUt6lcIi9H6ep1i9U2B5+mFQ+dFbnyKfvV wDJN7rdCmBNFSR5jPIMC14Z1XngO67s4bfX7yKovTFb7Oafu/krxeoCMhXOx+n9v2Ux7 bYMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a63690a000000b00502eada87f8si6777048pgc.19.2023.03.06.09.24.06; Mon, 06 Mar 2023 09:24:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbjCFRKt (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 6 Mar 2023 12:10:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbjCFRKl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Mar 2023 12:10:41 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C8C3AD0E for <linux-kernel@vger.kernel.org>; Mon, 6 Mar 2023 09:10:01 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <ukl@pengutronix.de>) id 1pZEKi-0004gX-8n; Mon, 06 Mar 2023 18:09:08 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from <ukl@pengutronix.de>) id 1pZEKh-002IfX-2T; Mon, 06 Mar 2023 18:09:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from <ukl@pengutronix.de>) id 1pZEKg-002kzu-0t; Mon, 06 Mar 2023 18:09:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de> To: Wim Van Sebroeck <wim@linux-watchdog.org>, Guenter Roeck <linux@roeck-us.net> Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com, kernel@pengutronix.de Subject: [PATCH 0/3] watchdog: Simplify using devm_watchdog_register_device() Date: Mon, 6 Mar 2023 18:08:58 +0100 Message-Id: <20230306170901.2232323-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=660; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=6EtYMqi1fiROjY+lQ+pajMbUbJLefC0foXaL6QV83mQ=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBkBh4bwGrLG15FzeO0fAFcq2Ni0hVbnG+KiqcKn dRSargLaqSJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCZAYeGwAKCRDB/BR4rcrs CZ75B/9UVWrm3WUTgoOPxmbIxxh0MRzudotrTjOICBkSgWfJ5etf0PkEEOADba79JicslaPcXbO 4Yvo5Mzxu/Lv2llE1mZuloVoGB6tGR1mM+bbb+cabgEA2pIpgwzP2T4dNzKcCRBHEu/i38lXYxg 7pQLi3O/nZWq484anLxAwUGPA6QSysBx2IJlihX1oBbgg2tk5/eRzHnH0nalO4Hq5oQihj3d0tG N4cUnzjoeH5c7SJw/PyXSmebJ75TBEWnn54M67rco70v/cFAhGf0kYE7+fHSXMxYKjwAsc6L2+U 1at+k1XU1qdIKo1ErhM+S3A97IS2EeFhcfJj2H70Ic82ohvv X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759639985267080254?= X-GMAIL-MSGID: =?utf-8?q?1759639985267080254?= |
Series |
watchdog: Simplify using devm_watchdog_register_device()
|
|
Message
Uwe Kleine-König
March 6, 2023, 5:08 p.m. UTC
Hello, this series converts three drivers to use devm_watchdog_register_device(). This allows to drop their remove callback. Best regards Uwe Uwe Kleine-König (3): watchdog: bcm47xx: Simplify using devm_watchdog_register_device() watchdog: rn5t618: Simplify using devm_watchdog_register_device() watchdog: wm8350: Simplify using devm_watchdog_register_device() drivers/watchdog/bcm47xx_wdt.c | 12 +----------- drivers/watchdog/rn5t618_wdt.c | 12 +----------- drivers/watchdog/wm8350_wdt.c | 9 +-------- 3 files changed, 3 insertions(+), 30 deletions(-) base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
Comments
On 3/6/23 09:08, Uwe Kleine-König wrote: > Hello, > > this series converts three drivers to use > devm_watchdog_register_device(). This allows to drop their remove > callback. > Side note: We could do more of the same by also replacing pm_runtime_enable() with devm_pm_runtime_enable(), only I don't know if the additional call to pm_runtime_dont_use_autosuspend() in its disable callback would be a functional change. I also don't know if pm_runtime_put() in the remove function is necessary or if it even makes sense. Any idea ? Thanks, Guenter > Best regards > Uwe > > Uwe Kleine-König (3): > watchdog: bcm47xx: Simplify using devm_watchdog_register_device() > watchdog: rn5t618: Simplify using devm_watchdog_register_device() > watchdog: wm8350: Simplify using devm_watchdog_register_device() > > drivers/watchdog/bcm47xx_wdt.c | 12 +----------- > drivers/watchdog/rn5t618_wdt.c | 12 +----------- > drivers/watchdog/wm8350_wdt.c | 9 +-------- > 3 files changed, 3 insertions(+), 30 deletions(-) > > > base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6