From patchwork Fri Nov 1 05:45:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Duan Jiong X-Patchwork-Id: 3136571 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D98D9BEEB2 for ; Mon, 4 Nov 2013 16:51:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98AEF203EB for ; Mon, 4 Nov 2013 16:51:10 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 65D4420123 for ; Mon, 4 Nov 2013 16:51:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E233DFAA87; Mon, 4 Nov 2013 08:50:13 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from song.cn.fujitsu.com (unknown [222.73.24.84]) by gabe.freedesktop.org (Postfix) with ESMTP id 32163EFDD3 for ; Thu, 31 Oct 2013 22:47:01 -0700 (PDT) X-IronPort-AV: E=Sophos;i="4.93,614,1378828800"; d="scan'208";a="8918695" Received: from unknown (HELO tang.cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 01 Nov 2013 13:43:38 +0800 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id rA15kvIZ029765; Fri, 1 Nov 2013 13:46:57 +0800 Received: from [10.167.225.86] ([10.167.225.86]) by fnstmail02.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.3) with ESMTP id 2013110113451313-2701382 ; Fri, 1 Nov 2013 13:45:13 +0800 Message-ID: <52733FE1.5020405@cn.fujitsu.com> Date: Fri, 01 Nov 2013 13:45:05 +0800 From: Duan Jiong User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: David Airlie , Russell King Subject: [PATCH] DRM: Armada: convert to use simple_open() X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/11/01 13:45:13, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/11/01 13:45:14, Serialize complete at 2013/11/01 13:45:14 X-Mailman-Approved-At: Mon, 04 Nov 2013 08:48:36 -0800 Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This removes an open coded simple_open() function and replaces file operations references to the function with simple_open() instead. Signed-off-by: Duan Jiong --- drivers/gpu/drm/armada/armada_debugfs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_debugfs.c b/drivers/gpu/drm/armada/armada_debugfs.c index 612f375..471e456 100644 --- a/drivers/gpu/drm/armada/armada_debugfs.c +++ b/drivers/gpu/drm/armada/armada_debugfs.c @@ -95,15 +95,9 @@ static int armada_debugfs_write(struct file *file, const char __user *ptr, return len; } -static int armada_debugfs_reg_w_open(struct inode *inode, struct file *file) -{ - file->private_data = inode->i_private; - return 0; -} - static const struct file_operations fops_reg_w = { .owner = THIS_MODULE, - .open = armada_debugfs_reg_w_open, + .open = simple_open, .write = armada_debugfs_write, .llseek = noop_llseek, };