Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1953670ybj; Wed, 6 May 2020 08:09:52 -0700 (PDT) X-Google-Smtp-Source: APiQypI91s1HNfA9GuXw+N6tdz86hK0G9SAz4r553KRahSh16O0b4JimATgPGEo/6kZa2Rr0INRD X-Received: by 2002:aa7:d504:: with SMTP id y4mr7280763edq.295.1588777792624; Wed, 06 May 2020 08:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588777792; cv=none; d=google.com; s=arc-20160816; b=gM3uJm3M2pq1o/Glpv4rJNmvYwtA4ByMncwTV/sau8h4l0lGRXnwNrcVvM9FtuKTfE p7j3ooYULEgY8DI5qGSpzg+9Kn8KhXOdvJ+vboRB02Qtfd4e4Y0khaKE6dv4EM6DeqHd F+Nn2+gBMetPp/PUOxP1fSj1/7Au7rMvQFetFnL3aalsz4LT7FHbCe+lrRHAmwixtfAa otqI1OVCJ2x86LwznHMzu7hI9Xp64+PKtuhgfQvF+/9wBDAKPF+TBN4W4v0HUp/S/xVE sm3gYRHOXk6l//MW3Dlwz5KjnN4CJtQ1yRgVfAT2guNB51yGH6RtR1Sq0ru9nkexMQ8t NCGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=eGi1L9urtaKBeDDvITR0UZqtmPEwGeW5Feo5TNhoZDY=; b=Xe/ZHON1d5G+KD8kijKWEHDnTo2eqLp8iGF3muuZBOBNioRQDgGZvve+vfJmZMCssA CtZfGwPnU89c/CjAwWI0cmH6Y0iav9DQJVzfCIe/ogDo61XQCIUNUDT8yy6Sw2EIXHpc BvdVLwru+YHWHv9bv7tzwlyHOGdZC+dt8S79JJguxtaHmHWIY8nKk6rj73ERBfmRBn8H dTnMqU4F3AGN5GKfEq7jjsH1IBL0EsdRiKk00ZG/dJ0Ni+uEOMfg2Yl5PpvL2aGaTgp0 Y78+vq/SxtZHjJYTvT5V7VbRXOI6f40mYymbfFD4Q4d37Sz1PAUqCXCkoVPBSY4JXaJl rbLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ipAclyHS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si1269005edy.24.2020.05.06.08.09.18; Wed, 06 May 2020 08:09:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ipAclyHS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729357AbgEFPGf (ORCPT + 99 others); Wed, 6 May 2020 11:06:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728428AbgEFPGf (ORCPT ); Wed, 6 May 2020 11:06:35 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D71F6C061A0F; Wed, 6 May 2020 08:06:34 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id l25so1213108pgc.5; Wed, 06 May 2020 08:06:34 -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; bh=eGi1L9urtaKBeDDvITR0UZqtmPEwGeW5Feo5TNhoZDY=; b=ipAclyHS2TH4DohF7rE2zwbG6ue8HaSV1QL+S7svkhP5ku3RZGC/NDpML1g82C7o9e VMX9vLSxxMroeLVOdJVyqmOaaSTt4fBkf5laIHqdhG3rKqbNEpEGf3+OfO9UxoFFAqgJ NcGfqu0tFw3JSorEWfrJxu7puP7QC806g3mV93zzCU5mI+EK5jhlpEuirwoWOl8r1SMH Kp5PA8BPsaVUNO6b6OJef1J1pxIbIF0tF9VaITj2kdUCeyGx5emB0S77w+WFe/U2q2bJ FtjXaAZfi/H90mACFFHSEwBp+eZkOtSV5iIFVul3suUcTz4OtBtkuBTEUBVadSH/h2U8 vQQQ== 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; bh=eGi1L9urtaKBeDDvITR0UZqtmPEwGeW5Feo5TNhoZDY=; b=tASrxi/1iRNoVY1yiaB9eekErPg3gi0iLxY4AMaEPw0O/5TqaZJp7bO/6EK8zYG6zw AkSsqbSWVW6EDP073ZU2H68TVtYXbC9hLAi9zPPZeAl6v3YuR+aMwi4mGWWm2biF7P7R PIV1z51P/hTfxehMo29mPcWGkwTZMvaR3ef6bXxaxG1K+WCL9ywCSOhl9QNDZZCHzwrm AoKfkxOWS7but+9Dsef354HYomi/uqOKrj9Qz58OpnYkwAzOV8A1VGTvypZuoil8MPna UImhrWpDNCwNVtnwY+FJeyXZ/ARWkA7KrUiuqQfT24SgSQdBrbUaGvN+xC3WioAIHQj4 Owzw== X-Gm-Message-State: AGi0PuZK0kUWM4HmfvvTOuJhP6cyfWzQUM8h6l41e2B2yWB8XSseMDmi YJ3vUGDBaxjIeVp894Swznw= X-Received: by 2002:a63:da01:: with SMTP id c1mr7678309pgh.121.1588777594380; Wed, 06 May 2020 08:06:34 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:712:fa06:497c:9578:5fd7:4b29]) by smtp.gmail.com with ESMTPSA id u13sm5050259pjb.45.2020.05.06.08.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 08:06:33 -0700 (PDT) From: Aishwarya Ramakrishnan X-Google-Original-From: Aishwarya Ramakrishnan To: gregkh@linuxfoundation.org Cc: aishwaryarj100@gmail.com, Dmitry Torokhov , Andy Shevchenko , Marco Felsch , Ondrej Jirman , =?UTF-8?q?Myl=C3=A8ne=20Josserand?= , Philipp Zabel , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: edt-ft5x06: Use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops Date: Wed, 6 May 2020 20:36:22 +0530 Message-Id: <20200506150623.3841-1-raishwar@visteon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200505153325.20113-1-aishwaryarj100@gmail.com> References: <20200505153325.20113-1-aishwaryarj100@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aishwarya Ramakrishnan On Tue, May 5, 2020 at 11:49 PM Greg Kroah-Hartman wrote: > On Tue, May 05, 2020 at 09:03:24PM +0530, Aishwarya Ramakrishnan wrote: >> It is more clear to use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs file >> operation rather than DEFINE_SIMPLE_ATTRIBUTE. > No it is not, why do you think so? This change is suggested by Coccinelle software. Generated by: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci > The two defines do different things, that is why we have 2 different > defines. You can not just replace one with the other without > understanding why one was used and not the other one. > Did you test this change to verify that everything still works > properly? Why is it needed to be changed at all? DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() imposes some significant overhead as compared to DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). But I missed to use debugfs_create_file_unsafe() function in the patch.