Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp61683lqj; Thu, 11 Apr 2024 09:50:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhMPe0AP9GNv8ucKxMWFY3Am2RurcjEYE1XhMAzKCn6806A28PtPTHebrxNg7bvM6tkU1bs0aBbQSW9MBzUMUNwbM3v2xAjcId/TnbDQ== X-Google-Smtp-Source: AGHT+IHUvKdmsb3Nj+kBjItibAXZUvwAbsNp/X4NXszZVujliUazRotyXq3HLZ8JuW2TpAVQdcE5 X-Received: by 2002:ad4:550c:0:b0:699:2863:e461 with SMTP id pz12-20020ad4550c000000b006992863e461mr293163qvb.1.1712854244692; Thu, 11 Apr 2024 09:50:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712854244; cv=pass; d=google.com; s=arc-20160816; b=MO/msTcZ2zyUk8cQISgp20cDPCm6G1fMRIFngQQhRtdsHAG72wZa1KAOgDmGeeZN+B e3YmySZQgsgNEN2GSuCx1qUb/Ug2Rgh9g7ycLXnXNBgxcHZOnemKPaIe4RCJiIVR38H+ OZUPxnHvqHTE8ywl87ZP/axHbIZzEoidkrBI1gGLkEtw25GF8SZzOw6qJPLHynUNqIDx iaDK2WMiQgAaTCXeJMx78trhUbAhC6pFjqywcJ7ddy59c+pzaNALppn3M2MbcmT9o47u RYuDa3eU1zhEOJ/d6pFBNL2mC0KWHW59oK8S20d0My9ecLDQxhIa8w6Hwv38oJFied6N ZUUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7OZXlSeWjVCMHOcX2v1VMNOJ8Dbm+E1WqqonRpcahtk=; fh=2FInBIgEh7xt9W7JS1z2wQ7fUhvLHtwfAfkXluU3JoI=; b=e2+vm+XIoZLgpjwcsV5yDTzRH1eHDb+3h0exNl2vuCvviAF7DM90SFq3TyOMClr/US TuNc33C9OukfLDAu2RGHT35J8TCGssPFCuHKFRJI1T4LqdTXJwDHmmp5gIoMICmhKgF/ rh5qeYv4Rtfi449X/PwQqeorM7IIeLxQuDTPt2TiWYQluj2L/c3QdeBVqsbK7EGxNsGZ xZB3ScYbuWus+DtW1C0rFyxp+sw/2woQzXzOIeruAO7aJ7Q9QJAc4ATIz6e80vppX9ng Em/rXb+4gbcpZ0lXLA0AJTSsOIV55Crd161X06E1dSoY9MwHNObtxxfVFMuN3PaVsTPX l43A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=FZDDejEF; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-141085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141085-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l5-20020a0cc205000000b0069b1f286c75si1805830qvh.444.2024.04.11.09.50.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 09:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=FZDDejEF; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-141085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141085-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 69A6E1C22E60 for ; Thu, 11 Apr 2024 16:50:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E028B1DB52F; Thu, 11 Apr 2024 15:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="FZDDejEF" Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFB881DA007 for ; Thu, 11 Apr 2024 15:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850014; cv=none; b=oYWPU11nbTQXXhcmahCKB4CQQoHNg+8w1QGaGzIs0VFiOjL9pwkZZCfnGp03f8Kqf06g1GGiMfTqmCjB2oBOarT2i5oQxi1sdhPmdq6mbptocwMewNjKHqjQnEiplAwTzSYxWBfgnTahYtsGq+TX1CMlExJu+fTsr3uKQHB9yKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850014; c=relaxed/simple; bh=5zl6nzIuWlq9czwyq2zUon2yWwTfh7iogk+BETfNKxM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SZHUKmz24ywNCalbAkBM75qbAeAvefD9N+fXJN9nZXEGub2c7cN6TTsabq68fE9Xc/5Q3jxdfGb8G/b/3oEfCsFzQnQgET6/AYQVw3GzNJ8iIe3/WgRRGocQQONd1tDZASwA+BlGi0Q4u3zQ0HuX6eGzCEqs0Up3WEsrqymD2V0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=FZDDejEF; arc=none smtp.client-ip=209.85.166.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-7d6812b37a6so9040139f.0 for ; Thu, 11 Apr 2024 08:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712850012; x=1713454812; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7OZXlSeWjVCMHOcX2v1VMNOJ8Dbm+E1WqqonRpcahtk=; b=FZDDejEF1MnSBOMreAdTuHKV5BG+iQoM4T0qDw2ZJfEJESAGzCh6tLcJGxeU1jIjnJ kl3pjUr5w6NuQtYWUx+DtBrTvrKDUV4nwHAclHefYtJ8/80d8pAqyjnICCGJU6Y/dXbF jS7j8DiH7rBUzH1s5rNQmNFBw4JfqhimtHFtmPizK+75XuAGlRl4VUIKRWEYwUP4hDcI DZrVo9scYK/HzWplZ3dRl0rVaHzWUuRiOyjC+C+7RtLvweLAvQd+hRIdHxUWb0mBoa0p uVf6ntQU/bZFtr4oucELWLWqnFwIi72y5LbPv8bvHsrprJVuA2bj2noLn/IMalzDZYJs ccUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712850012; x=1713454812; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7OZXlSeWjVCMHOcX2v1VMNOJ8Dbm+E1WqqonRpcahtk=; b=fPjK6Gr+zUYqiqXgv4PIEd7+J/AyIrrg0p6ntipRTE3IY/QFYrcb8i11qpXQiEeK/6 XyHOuyJeIi+pfD3NwkynOPgn/amxZw/Nw+dItIj/XqJNXsf6VmJQorPTLU28YRs0DnLS C8nwKaIZrHAfcMLS1e/xxEQCJobxTAkftsVDRaknb654pkcf21uQ5Iqt9AB42KVnLRrN JoLeNQgfsdXZwrDvVd6Ze2uOdhstcDTJagMLr6gfqtXbgSUEABtTGC/QcQUmdL70xqp+ vHkloGp2UrW6jkHBS/UPXP90QxZBqPW+ZLISlGRpcQxb6O05QlV2XMo8WWG3QxnL0lAd D3/Q== X-Gm-Message-State: AOJu0YwoAYqwoZTLh92Je4q1nRCrFIhP8cKa94cdhtgrZXFmYhEYL0Ae FdKKjDEjuOFujxKuzXX4wA5wJ1PP/VzZkZgn/HP4bpToiU9at5Ax7X4As83MW11vUgX/SBkYYpS q X-Received: by 2002:a6b:5b10:0:b0:7d0:bd2b:43ba with SMTP id v16-20020a6b5b10000000b007d0bd2b43bamr232367ioh.0.1712850011846; Thu, 11 Apr 2024 08:40:11 -0700 (PDT) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id jc25-20020a056638891900b0047f14b7f6c0sm457056jab.5.2024.04.11.08.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:40:09 -0700 (PDT) From: Jens Axboe To: linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 308/437] wifi: rtlwifi: convert debugfs helpers to read/write iterators Date: Thu, 11 Apr 2024 09:17:28 -0600 Message-ID: <20240411153126.16201-309-axboe@kernel.dk> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240411153126.16201-1-axboe@kernel.dk> References: <20240411153126.16201-1-axboe@kernel.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Jens Axboe --- drivers/net/wireless/realtek/rtlwifi/debug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/debug.c b/drivers/net/wireless/realtek/rtlwifi/debug.c index 9eb26dfe4ca9..11220484c4c6 100644 --- a/drivers/net/wireless/realtek/rtlwifi/debug.c +++ b/drivers/net/wireless/realtek/rtlwifi/debug.c @@ -66,7 +66,7 @@ static int dl_debug_open_common(struct inode *inode, struct file *file) static const struct file_operations file_ops_common = { .open = dl_debug_open_common, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = single_release, }; @@ -411,10 +411,11 @@ static ssize_t rtl_debugfs_common_write(struct file *filp, return debugfs_priv->cb_write(filp, buffer, count, loff); } +FOPS_WRITE_ITER_HELPER(rtl_debugfs_common_write); static const struct file_operations file_ops_common_write = { .owner = THIS_MODULE, - .write = rtl_debugfs_common_write, + .write_iter = rtl_debugfs_common_write_iter, .open = simple_open, .release = rtl_debugfs_close, }; -- 2.43.0