From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE59AC47256 for ; Tue, 5 May 2020 18:19:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CFF48206CC for ; Tue, 5 May 2020 18:19:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588702761; bh=8YWntH0BcwMssZMsDbibLAY9kGQBxOejyy5ySOH65mg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=tEzO3AvV8yvewrJPIDHaZxdsqpsTdRnDxwM/FximFKsVlpJQVyOUU3vMq5zuV3p+U xH+idxWZ2ajzehnh5e1a2F69hFlb/XE/MiHfg1D6Hz/eJTBxx6VdqjHHbiw15UApd+ UaG8LVl7mmlFxcGPCOdl5WQkRIATJKy96jH9pNJo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730847AbgEESTV (ORCPT ); Tue, 5 May 2020 14:19:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:33560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730258AbgEESTV (ORCPT ); Tue, 5 May 2020 14:19:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2240720663; Tue, 5 May 2020 18:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588702760; bh=8YWntH0BcwMssZMsDbibLAY9kGQBxOejyy5ySOH65mg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1MWWLLYgTT0zVQRgJ/snQ/KkboALVnB2QENjatYA7hIAeAhUiadvtofb5HVTmgHxX WKzgtZs/pF0DRjldMkFBYrHwV/UeDfEnZ9FBnk/pDsulDARgtIxJ77WOVwpLd72q6R MlOjxqyJdEkYuyd7Ye4KSmK2llRpLoSK37DJv4bM= Date: Tue, 5 May 2020 20:19:18 +0200 From: Greg Kroah-Hartman To: Aishwarya Ramakrishnan Cc: Dmitry Torokhov , Andy Shevchenko , Marco Felsch , Philipp Zabel , =?iso-8859-1?Q?Myl=E8ne?= Josserand , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: edt-ft5x06: Use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops Message-ID: <20200505181918.GA1216826@kroah.com> References: <20200505153325.20113-1-aishwaryarj100@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <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 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? 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? thanks, greg k-h