Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1562617

Re: [PATCH 57/62] watchdog: tegra_wdt: Convert to use device managed functions

Path csiph.com!goblin1!goblin3!goblin.stu.neva.ru!inn10.news.alteholz.net!news.in-chemnitz.de!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Thierry Reding <thierry.reding@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 57/62] watchdog: tegra_wdt: Convert to use device managed functions
Date Thu, 19 Jan 2017 12:10:02 +0100
Message-ID <t1iLo-MP-25@gated-at.bofh.it> (permalink)
References <sYebf-7JK-3@gated-at.bofh.it> <sYgwq-Pc-5@gated-at.bofh.it> <sYgG5-Sm-1@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Mi89t/SD+MY8Jlni3kpfAboxZhTlC+eV7HBxb3JApL8=; b=fyLRYht7iXZHJ6QkZuasAZHa3vGr5t2GvixjWKSIATrvWBVGoBiNDVFZxMKU9BTtuX WzZ/c7HOVDAykz36/cC+7q2bvT1gAM8jRQtPX3OeuNis78/4JBmoiXSFduHd96FWoLvr 1svhLjbs966KE0VD8O9tdxxfiTSjXMQ5fHxODyLWHE9GxIXs3x2Y7I1CX4IgFFdBqqGD /+yjTtNSnMZLPvWf2zPbLxUUtqsh142jD5B607uPWeO1r3UjoSMs7jJ3iB1/qw/uPXHS I+fNPT3z8hQ0DXiA01btnAsuwGWMlpGKCaUL8QJiUf3oZpnY6JZ9EtsWBryJU5AP4u+L 6eCA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Mi89t/SD+MY8Jlni3kpfAboxZhTlC+eV7HBxb3JApL8=; b=GcjCUnTFnFEN6Ar+swqPqLN8s1wUYrQj4RGoSD9fzAGZju9ZfluEFNqNzVkYY47KZy UDo2S2BSgezOF1z5qHYycDm1vCMJDKv2JwR6/+ETHPqjfXckBf1iEqIYvaZjKcHDMk47 MhQ1BmqxcRoC3H7zLhuyOLOTHNxL4XJEJkuO8nHbwh0lx9sA0y5cjXM7vM1zK/TmGKUF H+w8OCI8En9FR7Oe3nOAy1qLpLJvRXS8iYznaoZL6kWqffl4Jdp8hnq4QZjfshXCc87l Hap9yBWlW1vrLi0zgUn/tE6cT8w/bgY21TrLiby4OjLLp0I2tkkqiR2j5RtgAO21G7g0 P++Q==
X-Gm-Message-State AIkVDXJwihVJNgI3ZhTAbJpNjgjw0CeVg4OeKk6fIeKbrlcbL2lgh6vDDipt/9V+TWvshw==
X-Received by 10.223.146.34 with SMTP id 31mr6820906wrj.201.1484823848789; Thu, 19 Jan 2017 03:04:08 -0800 (PST)
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7CZp05NP8/gJM8Cl"
Content-Disposition inline
User-Agent Mutt/1.7.2 (2016-11-26)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 48
Organization linux.* mail to news gateway
X-Original-Cc Wim Van Sebroeck <wim@iguana.be>, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Warren <swarren@wwwdotorg.org>, Alexandre Courbot <gnurou@gmail.com>, linux-tegra@vger.kernel.org
X-Original-Date Thu, 19 Jan 2017 12:04:07 +0100
X-Original-Message-ID <20170119110407.GE30182@ulmo.ba.sec>
X-Original-References <1484091325-9199-1-git-send-email-linux@roeck-us.net> <1484100561-17638-1-git-send-email-linux@roeck-us.net> <1484100561-17638-6-git-send-email-linux@roeck-us.net>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1562617

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Jan 10, 2017 at 06:09:11PM -0800, Guenter Roeck wrote:
> Use device managed functions to simplify error handling, reduce
> source code size, improve readability, and reduce the likelyhood of bugs.
> 
> The conversion was done automatically with coccinelle using the
> following semantic patches. The semantic patches and the scripts used
> to generate this commit log are available at
> https://github.com/groeck/coccinelle-patches
> 
> - Use devm_watchdog_register_driver() to register watchdog device
> 
> Cc: Stephen Warren <swarren@wwwdotorg.org>
> Cc: Thierry Reding <thierry.reding@gmail.com>
> Cc: Alexandre Courbot <gnurou@gmail.com>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
>  drivers/watchdog/tegra_wdt.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Acked-by: Thierry Reding <treding@nvidia.com>

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 57/62] watchdog: tegra_wdt: Convert to use device managed  functions Thierry Reding <thierry.reding@gmail.com> - 2017-01-19 12:10 +0100

csiph-web