Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp40276lqj; Thu, 11 Apr 2024 09:17:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+hSl8a5aA5HVf9RahHWmIcPPiXVXxANBBExBGo8kKplxPghaH6CbAbMLLodBkD1KMr/JVVVA5LgaGMg7+j6Dk0ubIPiNaaym4JXYLbA== X-Google-Smtp-Source: AGHT+IF8B9IV244wVd4CSjz7JX/oVwXxU9jeUta6pUP/oLQ+/qLuP+caXzLjibv4MGMj8WTFiLb0 X-Received: by 2002:a05:6a00:92a3:b0:6ec:fe38:d94 with SMTP id jw35-20020a056a0092a300b006ecfe380d94mr136601pfb.33.1712852247187; Thu, 11 Apr 2024 09:17:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712852247; cv=pass; d=google.com; s=arc-20160816; b=kQgGqcTfwXP3WWcn/y/eosoH2g0rHPVdeaAJj5Q0Pyo/uNpYxiZzsJIqK8OpVCr39k wiBAG1BVf/MzcoDNOJVaP81LisPm2jvKBvB64NS0qNhBTuViM/SrsNOcAkccjp4yba2U eczX1HSJ5wlxmQnsn2lQE3Zoa0bZwxLArTDbl6J9Q3Tliw57XJXWes61HGtEURxEO9AP Q43uupJDADh0/SeaH77RvFZAk3wGXD+POel7pLS+zwv3lGu5Zf2NjOTPKiBBQMlm6d4U OCIX6tEp7xMq/vBjXssN0p7Utw0P4PYpb1VLbfiDuoIfCGYwEMP7jTWF/WOZGRqB5q4M 0p8A== 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=ayVqrybRN+1snfZYCIt8OLazPvrqtxDG6SAxszFAJ00=; fh=2FInBIgEh7xt9W7JS1z2wQ7fUhvLHtwfAfkXluU3JoI=; b=wrZaRvWHDnpObQy6rm0ueFpVphA+wIgFjA5jh/lQ2HT4TuQa3F7VdJzzJTRYLfnMv9 H8MQFkioYUElHXBCpzRLTNWrK5mM2/DXJYeeT1LnC7dZ4HKkOzwE/JMeIvZDTw5qmrO9 vzlY+NJd74Ecvw0gRO1lO8D5p29Q8DLYO1AX60vbIHmumYZZfQcMnsP0JsKH/HkyP2tN 53YEz1IZyGA655sFFKRM/G9gyF9y+9QQ7EJSPmYEeJ5ixKTAIbPpUZ5PdoxPy5dIOR0n OoERiV+3KZSQcpB1QK1wOZELBtw9O4EUIol4cXpmDuUWLqe0Ed0mZbkKX+cv3LJ+zLc6 v9qw==; 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=iln+NFXR; 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-140918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140918-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c14-20020a62e80e000000b006e6a215d716si1589186pfi.1.2024.04.11.09.17.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 09:17:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=iln+NFXR; 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-140918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140918-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E4EA3288C28 for ; Thu, 11 Apr 2024 16:14:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 461D8199E86; Thu, 11 Apr 2024 15:35:58 +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="iln+NFXR" Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (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 2C798194C6D for ; Thu, 11 Apr 2024 15:35:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849757; cv=none; b=DekDK+ZgMutu8Nf4BIiHUdNnjRWJ7Mt3PC0H6bwXZ6ocTDdhdI8aZgCOYLlIHHW62XX2sKGb467bEVQrKNXUzqO4thOSGVnZ+kuZbmZGNYd6DwwkOTiUtxysjMORcyaWxePlePT6kVJyj4lWAxvzCmsp8OrdT1jxm/EB29Mer+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849757; c=relaxed/simple; bh=R+8qdYKy+2yNR2Epgo8VTmaOZhc7ibFCLzN2ckw3VGQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LFyuC21M8vqR4eKx6xa72aHS2+eCnGL7HLgAYZ0qf1GVWp9xl/GeGzz11DRM72kNLsiimGHZOi4GagSToOSFy+O0UolpejmhvcVnJyKqqUZl8KWIjd6yzW95V9YCWgJLBH+Oi1l1nYqb/ydqoenq7lwR1NJ31K2WNv+JVJgVnRQ= 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=iln+NFXR; arc=none smtp.client-ip=209.85.166.42 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-f42.google.com with SMTP id ca18e2360f4ac-7c8e4c0412dso69562239f.1 for ; Thu, 11 Apr 2024 08:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712849755; x=1713454555; 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=ayVqrybRN+1snfZYCIt8OLazPvrqtxDG6SAxszFAJ00=; b=iln+NFXRa/0IGqBgZ/7RKMEPOMAQ7e8dLybiZcpJcNtoToR8ctFwpiqc/behldRCmk Z5yfI8fU7SsRHKUOqvcASmEEKCTn2yN4N+zQX4gqMoK7VLmC91kzvIBmmAcH8IF/PBNb p3VyK9lmqa0vweogMgGYvJ+yy+mY64m46H3U0fCq09Ul/z4UpFgHUM3WWYX+q7g+T35z CE9zf5KUm0vB2BFyXQjtZNd1yaNUTqmmInp8DFUrT+sFkycpgtZukbtBrP+cpL+T108t t71eb5L4MIYmaQc1bXjU6nWJFR4AJl6bWkfTkB5HOqiLqJjzYXT+0TrkTt86PJy5OLyU kgZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712849755; x=1713454555; 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=ayVqrybRN+1snfZYCIt8OLazPvrqtxDG6SAxszFAJ00=; b=edITESrt/bhPT2BZHfh2bl/lxCR/moKFKo4dXbKWgHcwIC43Oo4GBsUycj1GoLAtfP zL5IQTRQNhdtIfP+mGjTWBNy/R7QB2PuF0A+mmzdBxS9GiTQurXHuV9UckJmArKHmkwI 76hFPEPGCbpcm2cG9XPg5gRlmz7+rASzNaflBCgan3xD+jnoCyk0gK1c4CTWHweJAioT NdfTVlVVJjMjSxWEk4DxXIeH76WDRXNu7iCZfU/NmPG41x8oZEWaeY7zk0Ime6RPlx2e U4rB1d7c4nY5VqpB0YgNBDaiSQGgEmbd6YnaMa46GfFrySohX/txTCqbbC/9wQ/rraS8 V9Og== X-Gm-Message-State: AOJu0Yz/VmaVtutw8iKZcpamyPbECA7b2EvZPgFrWaMh5ioJLvjbY8rQ 8lgvO+f7WavjrvNJ/umyzxom9rNHrW/ntQ/jfEjlNzAk9E0pSi6xeX4P6SBx6A5RUOUaikUhPLZ i X-Received: by 2002:a6b:c34e:0:b0:7d6:7b7c:8257 with SMTP id t75-20020a6bc34e000000b007d67b7c8257mr216272iof.0.1712849754980; Thu, 11 Apr 2024 08:35:54 -0700 (PDT) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id jc25-20020a056638891900b0047f14b7f6c0sm457056jab.5.2024.04.11.08.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:35:53 -0700 (PDT) From: Jens Axboe To: linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 151/437] drivers/clk: convert to read/write iterators Date: Thu, 11 Apr 2024 09:14:51 -0600 Message-ID: <20240411153126.16201-152-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/clk/clk.c | 11 +++++------ drivers/clk/starfive/clk-starfive-jh7110-pll.c | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 25371c91a58f..5a6371a9cad8 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -3539,16 +3539,15 @@ static int current_parent_show(struct seq_file *s, void *data) DEFINE_SHOW_ATTRIBUTE(current_parent); #ifdef CLOCK_ALLOW_WRITE_DEBUGFS -static ssize_t current_parent_write(struct file *file, const char __user *ubuf, - size_t count, loff_t *ppos) +static ssize_t current_parent_write(struct kiocb *iocb, struct iov_iter *from) { - struct seq_file *s = file->private_data; + struct seq_file *s = iocb->ki_filp->private_data; struct clk_core *core = s->private; struct clk_core *parent; u8 idx; int err; - err = kstrtou8_from_user(ubuf, count, 0, &idx); + err = kstrtou8_from_iter(from, count, 0, &idx); if (err < 0) return err; @@ -3567,8 +3566,8 @@ static ssize_t current_parent_write(struct file *file, const char __user *ubuf, static const struct file_operations current_parent_rw_fops = { .open = current_parent_open, - .write = current_parent_write, - .read = seq_read, + .write_iter = current_parent_write, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = single_release, }; diff --git a/drivers/clk/starfive/clk-starfive-jh7110-pll.c b/drivers/clk/starfive/clk-starfive-jh7110-pll.c index 3598390e8fd0..1b00fdc92b17 100644 --- a/drivers/clk/starfive/clk-starfive-jh7110-pll.c +++ b/drivers/clk/starfive/clk-starfive-jh7110-pll.c @@ -420,7 +420,7 @@ static const struct file_operations jh7110_pll_registers_ops = { .owner = THIS_MODULE, .open = jh7110_pll_registers_open, .release = single_release, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek }; -- 2.43.0