From patchwork Thu May 30 11:42:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2636111 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id C8697DF2A1 for ; Thu, 30 May 2013 11:43:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935215Ab3E3Lmm (ORCPT ); Thu, 30 May 2013 07:42:42 -0400 Received: from mail-bk0-f43.google.com ([209.85.214.43]:56177 "EHLO mail-bk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935192Ab3E3Lmh (ORCPT ); Thu, 30 May 2013 07:42:37 -0400 Received: by mail-bk0-f43.google.com with SMTP id jm2so85003bkc.16 for ; Thu, 30 May 2013 04:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=Q4qOxLOUO4GZGpx9K+D0iHbtzLlSK21iT2982Tn6FIw=; b=WvUhQhsbKhCHFqBaU43QGjialy+qg/L6lCnyuyoWg6tEkWMITd6omSgOwYN1fFF6LQ FGoh+3qrRlOG1r650+O4/G3oYYkqApa1FggqWY2tdUyUrjn94uYaIIssXajP1mFgr447 vNrQQjc4FigIg2I+001SoOp7UPFgpmPuTwi5wKJYk6aHClsEk8FNJszJ87e4+uy6lmZ/ U8i/txlSeayUgoouAvGoUpUsmJc5VsnlCbvjLFUUV7zyaI2jhLFNocvevU3jo2glpijz ODfCm7UCl+/W2nqCX9t8EC+LU5Bu+s0cnndhL2IA/SiyHxbSlRoMZEGaTu9j3ZGbkO/T RfaA== MIME-Version: 1.0 X-Received: by 10.205.26.9 with SMTP id rk9mr1738491bkb.39.1369914155877; Thu, 30 May 2013 04:42:35 -0700 (PDT) Received: by 10.204.39.1 with HTTP; Thu, 30 May 2013 04:42:35 -0700 (PDT) Date: Thu, 30 May 2013 19:42:35 +0800 Message-ID: Subject: [PATCH -next] cw1200: convert to use simple_open() From: Wei Yongjun To: pizza@shaftnet.org, linville@tuxdriver.com Cc: yongjun_wei@trendmicro.com.cn, linux-wireless@vger.kernel.org Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Wei Yongjun This removes an open coded simple_open() function and replaces file operations references to the function with simple_open() instead. Signed-off-by: Wei Yongjun Acked-by: Solomon Peachy --- drivers/net/wireless/cw1200/debug.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/cw1200/debug.c b/drivers/net/wireless/cw1200/debug.c index b815181..eb40c9c 100644 --- a/drivers/net/wireless/cw1200/debug.c +++ b/drivers/net/wireless/cw1200/debug.c @@ -357,12 +357,6 @@ static const struct file_operations fops_counters = { .owner = THIS_MODULE, }; -static int cw1200_generic_open(struct inode *inode, struct file *file) -{ - file->private_data = inode->i_private; - return 0; -} - #ifdef CONFIG_CW1200_ETF static int cw1200_etf_out_show(struct seq_file *seq, void *v) { @@ -511,7 +505,7 @@ static ssize_t cw1200_wsm_dumps(struct file *file, } static const struct file_operations fops_wsm_dumps = { - .open = cw1200_generic_open, + .open = simple_open, .write = cw1200_wsm_dumps, .llseek = default_llseek, };