From patchwork Mon Nov 6 00:43:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huacai Chen X-Patchwork-Id: 10042435 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 4E38D601EB for ; Mon, 6 Nov 2017 00:50:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5029B2920A for ; Mon, 6 Nov 2017 00:50:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43AE729225; Mon, 6 Nov 2017 00:50:38 +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=-6.8 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SBL autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49B7F2920A for ; Mon, 6 Nov 2017 00:50:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751140AbdKFAug (ORCPT ); Sun, 5 Nov 2017 19:50:36 -0500 Received: from SMTPBG252.QQ.COM ([183.60.52.105]:44209 "EHLO smtpbg252.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751139AbdKFAug (ORCPT ); Sun, 5 Nov 2017 19:50:36 -0500 X-Greylist: delayed 428 seconds by postgrey-1.27 at vger.kernel.org; Sun, 05 Nov 2017 19:50:35 EST X-QQ-mid: bizesmtp15t1509928995t489nyed Received: from software.domain.org (unknown [222.92.8.142]) by esmtp4.qq.com (ESMTP) with id ; Mon, 06 Nov 2017 08:43:01 +0800 (CST) X-QQ-SSF: 01100000008000F0FOF0B00A0000000 X-QQ-FEAT: Me8Xob1wlXJXbluuAVVQ5Dd+0pYgtK2/EDEFrfCP5tyc9rGb4WKltZxwrACkb mxZlcYnh47N5BjHLz8efciNflq6ewuJmxs91LdjSRlLJ3vcFFQnHmwjSx1O/dP+gHKdSiSM o97Q6wlrnGoW+Ge79z6cPVsX4iXp7lhZ4qefTNnft2iZ1cyb7cj3wlmAz6i7a4EMBgA+DLX nVKnrxY5jzaMbrI+eyzlnQOiKEBsSGzjOrmKs15wobDHTiBHjB1CU9kLJ4Fm9drL4Hc/W3o aa0/X179kYmFrBrxPfhpJxWxPU+TlPb6FHfA== X-QQ-GoodBg: 0 From: Huacai Chen To: Sudip Mukherjee Cc: linux-fbdev@vger.kernel.org, Matthieu Simon , Teddy Wang , Greg Kroah-Hartman , Huacai Chen , Liangliang Huang Subject: [PATCH] sm750fb: Fix parameter mistake in poke32 Date: Mon, 6 Nov 2017 08:43:03 +0800 Message-Id: <1509928983-13176-1-git-send-email-chenhc@lemote.com> X-Mailer: git-send-email 2.7.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:lemote.com:qybgweb:qybgweb10 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In commit c075b6f2d357ea9 ("staging: sm750fb: Replace POKE32 and PEEK32 by inline functions"), POKE32 has been replaced by the inline function poke32. But it exchange the "addr" and "data" parameters by mistake, so fix it. Signed-off-by: Huacai Chen Signed-off-by: Liangliang Huang --- drivers/staging/sm750fb/ddk750_chip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.h b/drivers/staging/sm750fb/ddk750_chip.h index 09c223f..aee82fc 100644 --- a/drivers/staging/sm750fb/ddk750_chip.h +++ b/drivers/staging/sm750fb/ddk750_chip.h @@ -18,7 +18,7 @@ static inline u32 peek32(u32 addr) return readl(addr + mmio750); } -static inline void poke32(u32 data, u32 addr) +static inline void poke32(u32 addr, u32 data) { writel(data, addr + mmio750); }