From patchwork Tue Jun 13 23:15:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 9785057 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F1E7660384 for ; Wed, 14 Jun 2017 00:41:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E546728567 for ; Wed, 14 Jun 2017 00:41:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA23F28573; Wed, 14 Jun 2017 00:41:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6536F28567 for ; Wed, 14 Jun 2017 00:41:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 03F166E3E8; Wed, 14 Jun 2017 00:41:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0952A6E3DB for ; Tue, 13 Jun 2017 23:39:03 +0000 (UTC) Received: by mail-lf0-x244.google.com with SMTP id u62so14881134lfg.0 for ; Tue, 13 Jun 2017 16:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=05rx4t533x97xkfD0PycUXfAKW082RRzuJugFq2PVIU=; b=ZcYtN+t+xVKLcYhpvaaqjjurzPrb0+RQt/ZMxN7FMfcJgkmqCGg2/Gc4IytpSjU+C9 hq7FbtfSanoE9T81U9JyJxv91vDTs9ppGpECnW5lgtAqnPzXRgonkx6bdHIXY04CQtmg UgFALJhJP8Enr7R3bdU2JZir2IiB9+LPFSICk2RixMAc+uJI09dohOl91MnpcJXPe/Fe 3gYQ8r2k646x75zAd9+n+ah+UvCYWLUE1gvm+Y87S5sKL4RtX7oBEGPZ+JiZKkrPtQfA v8xJSd53P7J0RpIdjyirfbv3zTQsn5yBAKHybRanZblaDtyy+UwvBG/GAC8BQykSA5Wl LU7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=05rx4t533x97xkfD0PycUXfAKW082RRzuJugFq2PVIU=; b=J1IPZ6qSjla+A1HDPCcAIMj8O6fzx3RDVbEi7E0cvsdvLzlsstSAUlsXyipc8qQNv3 jmfrPKyHAFA3moAa4NYbs5RZoialum1W2ieNqkThSHyO5ZDekeNR8IEUdOExdRNnX61n WPokRyzQ5w0mwl6BlVTxk3S5tb22yjIhgHn9xVRIAy7bNcHAwPT0+QwH4Dyb0DMjf0Lr Lak8/6XQwuEc3JOGZXeNTUDN/zk8iY8PHJOJO4BsSfxO1RYQboTPX2STdChhNj5x/QtA ZJseM/MWtO5JahX4XTyWVnXODQWo98bm0eJ1jVUofMxluL/cTFtbplAEOEN720qxuoOi u7Lg== X-Gm-Message-State: AKS2vOzcagudn46jWxmOsa9UQiH1skZPU/QxKvv3j2BJcmIwon1NVyWB jBRRyRaOM1HuEuVMOvY= X-Received: by 10.25.233.149 with SMTP id j21mr619665lfk.64.1497397141487; Tue, 13 Jun 2017 16:39:01 -0700 (PDT) Received: from localhost.localdomain (ppp109-252-91-7.pppoe.spdop.ru. [109.252.91.7]) by smtp.gmail.com with ESMTPSA id f27sm3785725lfa.27.2017.06.13.16.39.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jun 2017 16:39:00 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Mikko Perttunen , Erik Faye-Lund Subject: [PATCH v2 17/22] gpu: host1x: Correct swapped arguments in the is_addr_reg() definition Date: Wed, 14 Jun 2017 02:15:56 +0300 Message-Id: X-Mailer: git-send-email 2.13.0 In-Reply-To: References: In-Reply-To: References: X-Mailman-Approved-At: Wed, 14 Jun 2017 00:41:00 +0000 Cc: linux-tegra@vger.kernel.org, DRI Development X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Arguments of the .is_addr_reg() are swapped in the definition of the function, that is quite confusing. Signed-off-by: Dmitry Osipenko Reviewed-by: Erik Faye-Lund Reviewed-by: Mikko Perttunen --- include/linux/host1x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/host1x.h b/include/linux/host1x.h index 71a34774b56a..561d6bb6580d 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h @@ -233,7 +233,7 @@ struct host1x_job { u8 *gather_copy_mapped; /* Check if register is marked as an address reg */ - int (*is_addr_reg)(struct device *dev, u32 reg, u32 class); + int (*is_addr_reg)(struct device *dev, u32 class, u32 reg); /* Check if class belongs to the unit */ int (*is_valid_class)(u32 class);