Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp648244ybi; Thu, 30 May 2019 04:38:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWqz7jTn3fcGbHs1g+CfQ+GZbh6BnleweD8pG4qFJ2TqlEYwFnAdWPQV0T5nsYR1rqeBaz X-Received: by 2002:a62:2cc2:: with SMTP id s185mr3287833pfs.106.1559216285588; Thu, 30 May 2019 04:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559216285; cv=none; d=google.com; s=arc-20160816; b=OKPldfgqh/RAwd/3t44o8PlAIwSsc7mO9JARLv/S7EMVnA+3lOyUL7Mnk/cTofsLkn YovYbDa30AEBtVjA6kkbZeAudX/WrMORaytRJJnDI10xp3YtctsAIl7VkNkNsHmhzase AqjtF2zcZvOHAWoAoDyibheOjZoXBFBu/D1EK5+MjPUS79dXsKJXmlkj6yLbpCKuUAd4 FpoSFoqqSCyvGaPL6ao13KubfSeNkIkpfJVathKxD8GnqTW/7uhjo5jSRvm4LcU2XdhK BKi7FV1TILxdlPWBvaJMrbmV2mh2gIsQY5XjuhEgsYHbo2ce7MUBnL03dmKCBDMKeDT3 STHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=oEF/ywkpwzyXdp32mRceU7ioagbppOL/tUNLr/bCKp8=; b=Nxe8TWpou4mMNyMaoe7BsVTOqbgpjyMzV6SGA+DSBjKEGjzFCPJ1G1rjUM6J5BSVy2 HUfaqXKeGqq6C3O4r6gUbTHqrgHW/aL2mJS3GJkPL77iJAbdrtdjMovxUzkZ3s8iA3A5 FUsLAOCc4ONWm4kORzMLPdAHn9S+b56sSFOOiBCkJgnO2OHtGA1pL4Y0jTe0jPL3B2rC 0e/Ifnh7oYeIqH3n35pzWwysJCSkZYOuLBUW7BqkyGCtNGnmWtry89Q+fFe91UWGIFN2 dyVVuQ/aYbHzslFVTUReKPYHgdSHP0KQ8t4Uyit0sg29w9ivAMKo0JdY4cUhBlnWXn1O xQVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QEU1+Nez; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si3047279pgl.508.2019.05.30.04.37.49; Thu, 30 May 2019 04:38:05 -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=@gmail.com header.s=20161025 header.b=QEU1+Nez; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726893AbfE3Lgn (ORCPT + 99 others); Thu, 30 May 2019 07:36:43 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:41109 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbfE3Lgm (ORCPT ); Thu, 30 May 2019 07:36:42 -0400 Received: by mail-lf1-f66.google.com with SMTP id 136so4750029lfa.8; Thu, 30 May 2019 04:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oEF/ywkpwzyXdp32mRceU7ioagbppOL/tUNLr/bCKp8=; b=QEU1+NezxGHtIr28TVARywmZg9hUS3PGpriHim+cVtRwL/W2XtNppYGgfYoMHF72zJ h3LOJqrQMP770oWHxrfVYn2RmwqNe/N6stwVIf58U3m1Lu7S1SBIcBdhZlPE6faZbKXZ LwEBeHn/nMpfA/3cuPklxecot2loPcfSMJlXSSj/kE73Jc+i3uJhA7+2jLXKd5zrm3YM ckUeT9huzoAnDSyUyT2RrJhnUUWNk29CbhwE7XuWWuD/fvU+90gtmY6O8GWOfw9eOFTh 0M9a7Hv97z4xfD8NrjYx4cu3W1YQTLCTOYmYM/Cid8bPv/Oetxscp4mxx4Y9kqv/Kgm8 lEsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oEF/ywkpwzyXdp32mRceU7ioagbppOL/tUNLr/bCKp8=; b=W4qy+RAQn8iwgwzNSsr5kpKuZPzS5RAIrrMoSAQgQ2SKOnVt0Co9AiYw1XpH1ds4Cc YuUNelpKvdlmJiFcaF9/cHG7camBRpPzoMQ+Zu22SQw45QWu8tMOQ1PNkVsKRKbXltzD oFl+FrIn0UvLfuRH9r+zHYVwGeKwmj8PtNGRRSlmzSxAcCuL9XC/R4KM6I28qOjFyPq3 SWjhIxtpYSsG7OIUq+5qjCtrFiGX7cc1vGFeoEuOUzklYvkSWQLHhFZYYqAf3t9MoMMd QdUa7qkkJ3lsKLeHc4xP5gAFH9Aig0o81NTRr1glOpCDLqosGbC86XTLFGG6tgIYAwHM tkfA== X-Gm-Message-State: APjAAAXGtMQdqXNKc4uQ5ToAYjEqL5/ijhnRmKGKN3zTESC0U5WRAdvb 53UMvCOzmFGkZOgCVjp28QzNRKUj X-Received: by 2002:ac2:5310:: with SMTP id c16mr1850010lfh.119.1559216200941; Thu, 30 May 2019 04:36:40 -0700 (PDT) Received: from [192.168.2.145] ([94.29.35.141]) by smtp.googlemail.com with ESMTPSA id l25sm444919lfk.57.2019.05.30.04.36.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 04:36:40 -0700 (PDT) Subject: Re: [PATCH V2] drivers: i2c: tegra: fix checkpatch defects To: Bitan Biswas , Laxman Dewangan , Thierry Reding , Jonathan Hunter , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Shardar Mohammed , Sowjanya Komatineni , Mantravadi Karthik References: <1559196850-7007-1-git-send-email-bbiswas@nvidia.com> From: Dmitry Osipenko Message-ID: Date: Thu, 30 May 2019 14:36:39 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1559196850-7007-1-git-send-email-bbiswas@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 30.05.2019 9:14, Bitan Biswas пишет: > Fix checkpatch.pl warning(s)/error(s)/check(s) in i2c-tegra.c > except for BUG/BUG_ON checks Please turn the BUG_ON's into WARN_ON's. The machine won't go on fire, hence there is absolutely no good reason in making system unusable on a software bug. BUG_ON may be more useful for development, but not for a casual daily usage. > Signed-off-by: Bitan Biswas > --- > @@ -1034,7 +1038,7 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, > u32 *buffer = NULL; > int err = 0; > bool dma; > - u16 xfer_time = 100; > + u16 xfer_tm = 100; What's wrong with the "time"? I'm finding the "xfer_tm" as a very unintuitive naming. -- Dmitry