From patchwork Wed Oct 17 08:29:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 1604341 Return-Path: X-Original-To: patchwork-linux-input@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 2FC0BE00AD for ; Wed, 17 Oct 2012 08:29:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756307Ab2JQI30 (ORCPT ); Wed, 17 Oct 2012 04:29:26 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:47532 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752351Ab2JQI3X (ORCPT ); Wed, 17 Oct 2012 04:29:23 -0400 Received: by mail-qc0-f174.google.com with SMTP id o22so1862424qcr.19 for ; Wed, 17 Oct 2012 01:29:23 -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=71QjWfOKv8bK8cpgsNZFlMXwhMXjiGOj5mwRgcXi3/s=; b=Q1GAmFKyekgBNPIHpj6I2j1yU1tpUIdkXjIhQ8ATllK6B31wmD3d1Yz/RTawv0cdUR CW6szy1S6fQ3VR1jGQ/M8ljKYiDP/H0u0fb+Jo5l0Dy0VB+8Ebc3VEawnBr+5uui83Tk YWQMYcZLd8cohXAACMqnut39Ua5Vqf6ycmh8FUi24e8mor4vB+eW7PB55I2L4c2ciUC/ fGbBKUm2pTgwQU2zh9V3lM7eDzZ6hMGtqZtZrdAQw2K8ayxAwCWiJUBHUDgZsHEC2aQ5 aWO4CfvB0L9HAdHJfcegHZAORcQh5oaQLW/dopuACGm2V5u4dm57Xl+ZKoqc6Nh24XJu /PQQ== MIME-Version: 1.0 Received: by 10.229.76.227 with SMTP id d35mr5285094qck.135.1350462563053; Wed, 17 Oct 2012 01:29:23 -0700 (PDT) Received: by 10.229.134.205 with HTTP; Wed, 17 Oct 2012 01:29:23 -0700 (PDT) Date: Wed, 17 Oct 2012 16:29:23 +0800 Message-ID: Subject: [PATCH] Input: edt-ft5x06 - convert to use simple_open() From: Wei Yongjun To: dmitry.torokhov@gmail.com, rydberg@euromail.se Cc: yongjun_wei@trendmicro.com.cn, linux-input@vger.kernel.org Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --- drivers/input/touchscreen/edt-ft5x06.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-input" 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/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 099d144..d9c6007 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -491,14 +491,6 @@ static int edt_ft5x06_debugfs_mode_set(void *data, u64 mode) DEFINE_SIMPLE_ATTRIBUTE(debugfs_mode_fops, edt_ft5x06_debugfs_mode_get, edt_ft5x06_debugfs_mode_set, "%llu\n"); -static int edt_ft5x06_debugfs_raw_data_open(struct inode *inode, - struct file *file) -{ - file->private_data = inode->i_private; - - return 0; -} - static ssize_t edt_ft5x06_debugfs_raw_data_read(struct file *file, char __user *buf, size_t count, loff_t *off) { @@ -579,7 +571,7 @@ out: static const struct file_operations debugfs_raw_data_fops = { - .open = edt_ft5x06_debugfs_raw_data_open, + .open = simple_open, .read = edt_ft5x06_debugfs_raw_data_read, };