Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp69219lqj; Thu, 11 Apr 2024 10:02:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9ME57wy1bjp7u9eZfdPn5TegawrKfnalm25T3NtOZUGSG5r3BAZweUyOhFt32+k1GlvnsF+JvjAiONFk84gq2uXan4Yqlgr9nsVNfkQ== X-Google-Smtp-Source: AGHT+IH3y5sTitwhhWtGv5vrHZ4HzcmA2KlAisI9H3baop6NaKlwmAuPyidJZSfFaArPujkxWMtM X-Received: by 2002:ac2:4c96:0:b0:516:d20c:eacf with SMTP id d22-20020ac24c96000000b00516d20ceacfmr235885lfl.26.1712854963846; Thu, 11 Apr 2024 10:02:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712854963; cv=pass; d=google.com; s=arc-20160816; b=lb2Gfk8gT03Gj6WAtkOQtJ6R3nGsy0R7oX/8ttz41sp44FFnOcD163Eop/BJsqDIhV W7tKdlzU5Uz/TkmdvBugExEQzZFE7tv76viWG9rfx0egBx8SKzvgtiudA90rKiS25h1I SHJIao4tF6lM6c2GLIng03dFB4fIk0DaAQrfZjqIFusICKt3JcRVFkqrE9Sm4Fdu8cex FGXf/KnUeND03CIT6MPCnUPPkzVMfXZ37UgX85Yn6dbWLlgWJsf5m8elf7DoCGluc5RF 26+yrcKvQo1SXhlB19qb2r6E174wYmiCA8LbT91av7D6AtJRE4375orqzVVv8Y0SHbBb QVbA== 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=pGAzEWsufQPncGSyPx2VXfJ5oENgvtMIK0zKLOzyooE=; fh=2FInBIgEh7xt9W7JS1z2wQ7fUhvLHtwfAfkXluU3JoI=; b=SKU1AhOZLWCxbDaTsKPuNW7zZ/mCb2v//2taoXTDZVFZU5UtnDEZAVZ+vdPWH0zJ6S zFweTRe/0YkUsgbK0JBBM/9ZZqXefO9PJpnCJTIdRcfuZiGvUtGNi01Fa3YD/H16fYGK 3JQ5RfvAHSprjrTJMqj7xAOLRGGXA0zin3gbhlH9hFePYOL/RTTCxDjAcq5FyjnRVPVB XwCgBya5W34HCWM1xOED/wKWM4omS6nSp+HQY/I9xfpAiZnKsKlwcIk0vlPwC9z1dq0x WqfPuce/VsU4Nddbos9UQTqncx+XLKCO1LSZ/zxVNJ48pahR2jcKyzEjzYEDVmXwrtlL M0Cw==; 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=JJDKSvoA; 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-141139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141139-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a11-20020a1709062b0b00b00a522f138b35si92315ejg.451.2024.04.11.10.02.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 10:02:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=JJDKSvoA; 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-141139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141139-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8DE501F234E9 for ; Thu, 11 Apr 2024 17:02:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC9861ED72C; Thu, 11 Apr 2024 15:41:46 +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="JJDKSvoA" Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (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 C0D5E1ECE78 for ; Thu, 11 Apr 2024 15:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850106; cv=none; b=m1ejMpE4Dj5cGPTDkptipSnFdRqV4ol5Zbew/PfYS+GOzCQj3KK3o3aPVgU2z8A0/UCS8ILyMsvsWDS6qttWEJE8k1lbDNtVxYfK1Iu6SUQN/eOLdNZ/NJ1O6j5bkSmbvMUzezuf1bIC402YOzlhDxVPh1k7lJ6aGyksB+1S14w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850106; c=relaxed/simple; bh=XA0kueIZ+W/r6Gy+vaE76A3EVkTNnTgOhktlTU+d77I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EeSWS3opBQPqEOUUqlDFn3eeuTzzL/qXgSnonSOeVScN0zft/2ysHg8HDGTJLve+T389kBY33SR/D08bEhLTKtKNuaiPWaee8zK3gkATYejjk5ShP5VdDKrupl2Vt81EeufuJCNa1v4HNmq/5T92ZO8i3oqBR2VpiNKE2NOXBwQ= 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=JJDKSvoA; arc=none smtp.client-ip=209.85.166.45 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-f45.google.com with SMTP id ca18e2360f4ac-7cc0e831e11so170636139f.1 for ; Thu, 11 Apr 2024 08:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712850103; x=1713454903; 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=pGAzEWsufQPncGSyPx2VXfJ5oENgvtMIK0zKLOzyooE=; b=JJDKSvoA7CH+MMG06F2nv95XF3XBshB2fj8fCUHKyt8x9fN2eKQLnN7y6M+O5j4+zt CKcX/h5FGiOxBb2AM+vjyiyWA81cc1Pp1CgVgxtUk1Qm8bU+i2xOiwSeY7m+8RkOjIjq 4If6DvaeKD8BJYY5h3nZ+1XNFVAnCipjd8aCMwooKGlKjPZws1vzhu2ID4NiRwl/Zv54 0nukpL6WaBF93WJbfEqYLpv0IpxbDJng5cKdATAEVXRgfnJCUas4GKsoi0Vvigphok4W 8DAmloYKBWIr3POfd0SFBq1W02mqSgZBjzl1TEKmyiQ9CYFjnK0bgsooE1ObSxhQRlvI Xvgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712850103; x=1713454903; 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=pGAzEWsufQPncGSyPx2VXfJ5oENgvtMIK0zKLOzyooE=; b=U6ecPL6K5WcpAUTnGbUCIs8D94okX4uFLTgRLmaPRbJTiECgatdXGIu1vsvZSRVvCJ YfJ/DFgbglG6R8ETt+Ogs+iBlp7vdBtbN0OUEL8wmKEcmbW8FkMcHMdsT3Es9HEj6n6t V2XbcwlN7SP3bosQHwh8Le5OlZW2ouyJS8WdYOk4vpELmRLe1rH9mNdB0ZG57lBlCEwP QxPXk3mFJCC/5SrG4vibtm5rrUYjl68puWLoCR330dwMuDPmZ6P5U59zAWxySaC1ItDX D1yU3Rx/MkUZuw83MYq7MCxRy5IhHO1SLEAIUk3sg2U1FwHRzJMK/jP89bVGcE6QeroT vEIw== X-Gm-Message-State: AOJu0YxgM4B4MYtjq1EWxEKttPesnh/j9QOiQcAKy2VCIMNVAAoJfcfJ +SeISC8fk8my1V9heys6/eGBeQgCYD6LbR4Opq7eJTK9HWbRrTlAYCuFL2LdxgT08TgmHUPCVvJ 6 X-Received: by 2002:a05:6602:21d7:b0:7d6:9ddf:5095 with SMTP id c23-20020a05660221d700b007d69ddf5095mr31252ioc.1.1712850103578; Thu, 11 Apr 2024 08:41:43 -0700 (PDT) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id jc25-20020a056638891900b0047f14b7f6c0sm457056jab.5.2024.04.11.08.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:41:42 -0700 (PDT) From: Jens Axboe To: linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 360/437] hwmon: asus_atk0110: convert to read/write iterators Date: Thu, 11 Apr 2024 09:18:20 -0600 Message-ID: <20240411153126.16201-361-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/hwmon/asus_atk0110.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c index d778a2aaefec..bd6eabfd7d73 100644 --- a/drivers/hwmon/asus_atk0110.c +++ b/drivers/hwmon/asus_atk0110.c @@ -764,13 +764,12 @@ static int atk_debugfs_ggrp_open(struct inode *inode, struct file *file) return nonseekable_open(inode, file); } -static ssize_t atk_debugfs_ggrp_read(struct file *file, char __user *buf, - size_t count, loff_t *pos) +static ssize_t atk_debugfs_ggrp_read(struct kiocb *iocb, struct iov_iter *to) { - char *str = file->private_data; + char *str = iocb->ki_filp->private_data; size_t len = strlen(str); - return simple_read_from_buffer(buf, count, pos, str, len); + return simple_copy_to_iter(str, &iocb->ki_pos, len, to); } static int atk_debugfs_ggrp_release(struct inode *inode, struct file *file) @@ -780,7 +779,7 @@ static int atk_debugfs_ggrp_release(struct inode *inode, struct file *file) } static const struct file_operations atk_debugfs_ggrp_fops = { - .read = atk_debugfs_ggrp_read, + .read_iter = atk_debugfs_ggrp_read, .open = atk_debugfs_ggrp_open, .release = atk_debugfs_ggrp_release, .llseek = no_llseek, -- 2.43.0