From patchwork Fri Aug 9 09:28:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086025 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC2BA1395 for ; Fri, 9 Aug 2019 09:28:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9955C28C57 for ; Fri, 9 Aug 2019 09:28:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DD1528C59; Fri, 9 Aug 2019 09:28:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3B1B928C57 for ; Fri, 9 Aug 2019 09:28:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8P1vNlSiWsHnZR9wgRJUj5HKnT0Ux8PRpzIz5e9rmlQ=; b=QZkcJuBE9z+ylI v88kZBRRQa7BuW1COfee7y4h+d0D8Tk6oa7iQ5Ut+eMmbHq2VXJjkAvu854SDJ43aA8j77gx+JIEd WmdRz0KwIfA+OYbkF4NZwEiL42DCXvsQYskTBU+bmjKl4asitjKeZEA7vRK/4AyjRRIWPdXXycHwA qKDiW4iDBa5IoU5IUOZn3xZp4Y+wEht7CSf0UEuen/gGY7XAKRDDid09UXPjFxPAX0tpwVAkI1E/G Rlswzm5FflK6CUUPEpJHxb+lKyp0OgqMjC6Orwdzfy/cHSl2/NEmVUbNUF8DH1f6F9K52SCi+0lSO WoFTbn0xFdj4Xz+6znOw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1CI-0001F1-35; Fri, 09 Aug 2019 09:28:30 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1C0-00012q-AW for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:28:13 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D217A6118C; Fri, 9 Aug 2019 09:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342891; bh=50uqMN37wFKpFtgCeU4FtdRU5i+aACNDBqM2Am/US4E=; h=Subject:From:To:Date:In-Reply-To:References:From; b=VZS/uQvhoeILo9WUU98KgjVLJPXB+O2eTSpXpaWLrEBIsOinGajGPYradOrO/C0BY N43e+SQLiIFRFYYU8vUgJ61MiSfrg9QoSjF4+t1jpXoJENvpz28n9+1RcRJikZ3s3F rAHtZwyl7fcdGm+QquSAfCKh8Co34hqc1O+IqwUc= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D76F26118C for ; Fri, 9 Aug 2019 09:28:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342891; bh=50uqMN37wFKpFtgCeU4FtdRU5i+aACNDBqM2Am/US4E=; h=Subject:From:To:Date:In-Reply-To:References:From; b=VZS/uQvhoeILo9WUU98KgjVLJPXB+O2eTSpXpaWLrEBIsOinGajGPYradOrO/C0BY N43e+SQLiIFRFYYU8vUgJ61MiSfrg9QoSjF4+t1jpXoJENvpz28n9+1RcRJikZ3s3F rAHtZwyl7fcdGm+QquSAfCKh8Co34hqc1O+IqwUc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D76F26118C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 15/15] ath11k: debug_htt_stats: move fops structs close to the functions From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:28:08 +0300 Message-ID: <156534288863.30736.6802391040553041619.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022812_407980_BEA9A2C6 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP For readibility fops structures should be right after the actual functions, move them in correct place. No functional changes, compile tested only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 32 +++++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c index 4e2894ee3cc6..838c17f3dad2 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c @@ -4203,6 +4203,14 @@ static ssize_t ath11k_write_htt_stats_type(struct file *file, return ret; } +static const struct file_operations fops_htt_stats_type = { + .read = ath11k_read_htt_stats_type, + .write = ath11k_write_htt_stats_type, + .open = simple_open, + .owner = THIS_MODULE, + .llseek = default_llseek, +}; + static int ath11k_prep_htt_stats_cfg_params(struct ath11k *ar, u8 type, const u8 *mac_addr, struct htt_ext_stats_cfg_params *cfg_params) @@ -4345,6 +4353,14 @@ static ssize_t ath11k_read_htt_stats(struct file *file, return simple_read_from_buffer(user_buf, count, ppos, buf, length); } +static const struct file_operations fops_dump_htt_stats = { + .open = ath11k_open_htt_stats, + .release = ath11k_release_htt_stats, + .read = ath11k_read_htt_stats, + .owner = THIS_MODULE, + .llseek = default_llseek, +}; + static ssize_t ath11k_read_htt_stats_reset(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) @@ -4396,22 +4412,6 @@ static ssize_t ath11k_write_htt_stats_reset(struct file *file, return ret; } -static const struct file_operations fops_htt_stats_type = { - .read = ath11k_read_htt_stats_type, - .write = ath11k_write_htt_stats_type, - .open = simple_open, - .owner = THIS_MODULE, - .llseek = default_llseek, -}; - -static const struct file_operations fops_dump_htt_stats = { - .open = ath11k_open_htt_stats, - .release = ath11k_release_htt_stats, - .read = ath11k_read_htt_stats, - .owner = THIS_MODULE, - .llseek = default_llseek, -}; - static const struct file_operations fops_htt_stats_reset = { .read = ath11k_read_htt_stats_reset, .write = ath11k_write_htt_stats_reset,