Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp217290ybi; Fri, 26 Jul 2019 08:37:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0pQaeDn/+tRqBCgfPYIEIWSvftr/QpuFSxDIXPjrWFp2/PMRse8riCH9axRKOSr+27rQu X-Received: by 2002:a62:be04:: with SMTP id l4mr22073261pff.77.1564155442005; Fri, 26 Jul 2019 08:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564155441; cv=none; d=google.com; s=arc-20160816; b=DGaIMFNNTnWDQ8V2mnzzLhYR9XfqqffzgtvhEo96QfbDUtBcKeowF/a8PgcNFa0FwD 0wt672Shxb/CUgXqi0SpZCXjPO8nbLLdCE40hP2hAva7GKjcpj1sbAcP8YiCQgQXTHny vd6OdOa6HFxcARdxG7gEqOfPVQNBJsgrO2oWDPAPVZV4ti185LceWMUnEKduRVWW+Q+a 0FsFuMAn+m8U5A0Qi1//Q2aI8c62EYESFDseep+HYcus/2M/laMu0jL20pdeDApQfQI3 s23Nr0IOBlImOTwTvwNTV/71vF3r5xtwVG3qm/sW94P5/AJYKnQyF03l+SVZHzKYnW3Q QHDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=S/tXIxQTQsW3oK7BMKTvS78A8By+OsZFwzupEZpYqoM=; b=NIyDO7pttMRRuzhTql2TWDq48Oh/+94qo/srMjzUgQAJVii+Fx9YPPQ9fmeoaiSq/+ LoHUZ8/WRarQ4QMoDn0I4X8AaOeDA6dPkHkPS1qvGgwunVoHJx8qB4L9Mn0TOZhEwZmm 3EXK0umDUUZ5NDs1eJMP1hBfApmSaUpXidbF9wB/8P5rnBx9qhR5OHrr574VYnYOqq0M obTY0YhpasWWuyco0aIfiuDww99DEco4+ohwaXbtBLxg5CeKss/zxDo9pUL3HlwEv7IK XxJ2rvsddfNjJEvBj8QpRbey4eF8/qf6CfXh5yaE9AfITCvKY/4kkcm5ySfR1PhyGun0 L3/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z190si21705974pgd.303.2019.07.26.08.37.06; Fri, 26 Jul 2019 08:37:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388641AbfGZPcR (ORCPT + 99 others); Fri, 26 Jul 2019 11:32:17 -0400 Received: from mga18.intel.com ([134.134.136.126]:57776 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389429AbfGZPcP (ORCPT ); Fri, 26 Jul 2019 11:32:15 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2019 08:32:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,311,1559545200"; d="scan'208";a="322066667" Received: from msmall-mobl.amr.corp.intel.com (HELO [10.251.154.62]) ([10.251.154.62]) by orsmga004.jf.intel.com with ESMTP; 26 Jul 2019 08:32:13 -0700 Subject: Re: [RFC PATCH 02/40] soundwire: cadence_master: add debugfs register dump To: Greg KH Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, vkoul@kernel.org, jank@cadence.com, srinivas.kandagatla@linaro.org, slawomir.blauciak@intel.com, Sanyog Kale References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> <20190725234032.21152-3-pierre-louis.bossart@linux.intel.com> <20190726140922.GD8767@kroah.com> From: Pierre-Louis Bossart Message-ID: Date: Fri, 26 Jul 2019 10:32:13 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190726140922.GD8767@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> +static const struct file_operations cdns_reg_fops = { >> + .open = simple_open, >> + .read = cdns_reg_read, >> + .llseek = default_llseek, >> +}; > > DEFINE_SHOW_ATTRIBUTE()? I remember looking at this but can't recall why I left it this way. That was before my Summer break so will relook, thanks for suggesting this.