From patchwork Wed Jun 14 23:18:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 9787751 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 B4208602CB for ; Thu, 15 Jun 2017 00:59:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9AE6284DC for ; Thu, 15 Jun 2017 00:59:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E3B0284ED; Thu, 15 Jun 2017 00:59:15 +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 5D1D0284DC for ; Thu, 15 Jun 2017 00:59:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 23FD76E67F; Thu, 15 Jun 2017 00:57:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x242.google.com (mail-lf0-x242.google.com [IPv6:2a00:1450:4010:c07::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47DFF6E63C for ; Wed, 14 Jun 2017 23:19:13 +0000 (UTC) Received: by mail-lf0-x242.google.com with SMTP id u62so1617664lfg.0 for ; Wed, 14 Jun 2017 16:19:13 -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=NNEOOWouj6eRSFq02VJLLHR/kMXMN63MHzYbUpQ0gdkboTtMimASFmzdHKiQaGqjdy UIN9Cm+bx1qcQMUOt1p10zkpsykgzm8b1f1WpFHDakTNhXOgVTCGIxkinPeBIPgQvKzT ajQxj9ihXXAs3l3DSNwaSykmYb5ly9TvxKQN/t8zCMyKJCngniGvZVf7JouQSfBExzRZ bvp6TcemzIS1Z7Gs0xEwr8OX388msxh/fAJzJw5J4NBodrxGaOH6DymtO/9xH2g/uCyP WQsb6UzVOTzAYo9ZjAdCIwxvIS/KsZ91JojCN8o28v4/0UR/fIhNQB3blmAqikJSWACU h/FA== 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=XUWzzBJU6+zjLjupHsR3CNCeNjl0Wc7Aad0gInHJ/mToEnWq1pLXvRMayoodSyBCzK UrCCy10u4jBmGYpiJN+3Z0kOimD4DsUIHJIZj9kPiScOmLXZC7DuYSoyvqIpExszeA3J LNpmY2D05d4WyzWSXBSbeJoFblg/IH1DBkNx3RZRBi7oKkThCKJ9ric0nHt2pcqEF3pE etXKw3UopPk/BOctr+jZ1oZvlaSwLIuOItgYXs1u+O6ceXJvNPew1dJYQapL1DA0SCJd Al4zIoste2y52SefHRwP/deHquHm7N5E4eX7Y0WB+Bv7wFkA0JWcRa+PpTY+vsdxWguT AVpw== X-Gm-Message-State: AKS2vOxAGGfD6WGDB7ElwfVYEL8hJH/YzjnBdqh8aMK93w5ohVuk9LA4 evpcVISNaQPi8g== X-Received: by 10.25.168.210 with SMTP id r201mr768268lfe.85.1497482351787; Wed, 14 Jun 2017 16:19:11 -0700 (PDT) Received: from localhost.localdomain (ppp109-252-91-7.pppoe.spdop.ru. [109.252.91.7]) by smtp.gmail.com with ESMTPSA id i24sm290165ljb.63.2017.06.14.16.19.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 16:19:11 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Mikko Perttunen , Erik Faye-Lund Subject: [PATCH v3 15/20] gpu: host1x: Correct swapped arguments in the is_addr_reg() definition Date: Thu, 15 Jun 2017 02:18:38 +0300 Message-Id: <0846ef631a953dc481e890114c73feb42c1b3d85.1497480757.git.digetx@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: References: In-Reply-To: References: X-Mailman-Approved-At: Thu, 15 Jun 2017 00:57:20 +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);