Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5613637yba; Thu, 11 Apr 2019 01:49:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwM0dsg02V+s5TBYJAX8yksI808p+VPCsgsWKFf+5Gi8Vgtypd75t7iiIVnbLI5buwLc0/T X-Received: by 2002:a62:174c:: with SMTP id 73mr48690132pfx.33.1554972564285; Thu, 11 Apr 2019 01:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554972564; cv=none; d=google.com; s=arc-20160816; b=HbjySVFjYjFjbfgjDMGkfkaEF0QVw4UX0wmrVn+hYQ3iGcvgBXrHvpdpz3gingmKji uT+0lfnpL2AiSWYEQnTim+yHLYkwzUChh7Wf5L/PCRA/DSeRGPIeA29Wy1D6/OuoJfCj 2kQ4Pdwe4jfpK2ys8tVItRIAza2iE92Zk9j7oLGZvst1pYDsw+prT+2hjO2SlUmG2Wk/ vrnV1Uj4b960gGOHZebcXI3WWFTZofuxRqk6sQuT/P3WI2KZmDxjl5ZKS1G2EcJsK0yY NGeUr5+mQqkw5esrDgNNELGmSfuxqgB9+oDuXXmBaEiH+Z7rkDoXvQHLY6qVlgtV7kzO y1xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PvgDY9wKSWYKiTT4wIcJQ3mSBOYSKz0Scqa1kEwNsGs=; b=kEmeTSyf5s3joyUVlCH5UrriqRIPjlNEm7WZUHso6rG+/Lis31VuyTmXjl6FdfD3Bp XFBWohUF3s/sVh0xF50IqTSVB8lHQshjDRIpVod23jHt7FX/2gT9UxYaaW45COUoZiKq bNwx4ogTyAMF1Q+fwcQbjS25aElBkBVGj3peui3TMeZd98IP0DzECRH2gf6+bn7jpLI8 Y6g8p3eVg79bYnBVVIQNCZppsAsKwj6vYxlwSbwoepp3acvgVM5EsgUN1O4TcMJOOwFB sF3CgeH+lPKiFMd6aOouGgepKpy54j/pKDFdbYrRdqBZP5XKEXN6VBclC42wQtPz+UyX WxnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ry7ZG6QO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s29si33795513pga.152.2019.04.11.01.49.08; Thu, 11 Apr 2019 01:49:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ry7ZG6QO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726957AbfDKIsX (ORCPT + 99 others); Thu, 11 Apr 2019 04:48:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:57118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726588AbfDKIsX (ORCPT ); Thu, 11 Apr 2019 04:48:23 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 145F22083E; Thu, 11 Apr 2019 08:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554972502; bh=eSLe9DK5obN8DuIVbQiQLS5NNGibWxOjuhhp0/GJYmw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ry7ZG6QOK5acsVriTYrta2IE8OAtSIVoyrGt8pVHNF0YNLIev67SRU2IEhAQTd+dN +A7Ffp0NlK6vYsY8b3Rbdah9bsm8mNoVS5A/8Pt1VOsCshnsORyWo3aEVC/JNS0cv6 vepZ41I7A32V3GheEFovIxoHYseVLHXB6QERy4yE= Date: Thu, 11 Apr 2019 16:48:07 +0800 From: Shawn Guo To: Guenter Roeck Cc: Wim Van Sebroeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Subject: Re: [PATCH 10/22] watchdog: imx_sc_wdt: Use 'dev' instead of dereferencing it repeatedly Message-ID: <20190411084806.GF3050@dragon> References: <1554913683-25454-1-git-send-email-linux@roeck-us.net> <1554913683-25454-11-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1554913683-25454-11-git-send-email-linux@roeck-us.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 09:27:51AM -0700, Guenter Roeck wrote: > Introduce local variable 'struct device *dev' and use it instead of > dereferencing it repeatedly. > > 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 > > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Pengutronix Kernel Team > Cc: Fabio Estevam > Cc: NXP Linux Team > Signed-off-by: Guenter Roeck Acked-by: Shawn Guo