Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp79208lqj; Thu, 11 Apr 2024 10:16:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5zjLQmGISIGcN0iwj+V4euyGbhrKVtf0x95r+e3TYsdYXPacyKU3t2qB5wGx2kDbOKP3UMp07qzlhA9qmb5snrKFn8ZpukjiW1YfIcA== X-Google-Smtp-Source: AGHT+IFqM+8Zp4Y0iNxINIfPX3cxpB+/0Ido0FCqCE1EdX0K4Xe4rST047Eb1bEOW11zY1/gGakk X-Received: by 2002:a05:6e02:1686:b0:36a:ff98:8bc2 with SMTP id f6-20020a056e02168600b0036aff988bc2mr182439ila.25.1712855818215; Thu, 11 Apr 2024 10:16:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712855818; cv=pass; d=google.com; s=arc-20160816; b=QSIC7dubG+7Ogf+9OZjl6tnzN9vuPuqhAMVDUvKQTX7wjYrPLY+VHmVVwrOuxsA9Xi 2jltmdAZ3p/8cclAyJ9tH+8U0BNWbQ/1dgm9gReC6z0E85YvvClRtXhfApcrSaSat2TG /vzaBo5YvXvSZutNbkziJ8XucT3q7hed7UIUD7PWx+7hbULyS5tHm+rlmkHJc/lsPvl1 ykKaRFS8yc88wzkufCl4U084Zy5PE6hV36EJfyoo/G10nVXjE4BUDZLl4x5Ra8iMLIU/ unG+HGlDh8vklbX8uu0M5gAXmzHFvog07mPMlqJl8TMrtuLeF4D7J/+mVM5/18gcrPki xGuQ== 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=V5mzaQmM9seghk8pfFNXBPZTgd7LDqNjJYdodgsGpAU=; fh=2FInBIgEh7xt9W7JS1z2wQ7fUhvLHtwfAfkXluU3JoI=; b=Igz5mlzFcg24TaPMqHLXcI1jWP7PClc1kPOI/Efe2naA+JtZIlfh2VsHxf8NI5eQfm 0ngbrJ6+0iyzYJI5KHAfHu7NdArv0cCaI57Hg9QXy3ujoWnE+tXix3cO2GXjER6/uFnf ZeyAA9Cm/UJ5hKGmnMU38moQkmi8DrEcYqEa9QneULYNgDxs4uDvoC8TvTXt2roIH77S zQmLDEmfBmUDjX4Dd+nLx8WMUr6z8T+nNG6shOqq/LuuZm7vnKmnUNOEGV3IfonkxpmB WgMueqsEu/vC6EMkdVUgUq92Pt3dw+jwzQGdq+OsUse5+tp9t9q4i02LMPpn+Nar3TBm T4Ew==; 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="HTUh/qrv"; 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-141055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141055-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v8-20020a655c48000000b005e10b746148si1528991pgr.432.2024.04.11.10.16.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 10:16:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b="HTUh/qrv"; 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-141055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141055-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 19112B25650 for ; Thu, 11 Apr 2024 16:44:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E81C315533F; Thu, 11 Apr 2024 15:39:29 +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="HTUh/qrv" Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (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 D975C1D0F1F for ; Thu, 11 Apr 2024 15:39:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849969; cv=none; b=pCZz0rhMKlUgLSOVFGAyFbhgTvuiaRyzaWD01ZDB7yL3+fL+v9TUl06fTH4HnAKKfzAitRCWrGJkWVDiN6zACfqk6X3pY1y+OW1B5K0rnE/n7mRmg7+Db2FIYgBzuHyiN8BupjtBlZZJUteLkP5ElP0RVhxK9qFQ+AyVdE+co6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849969; c=relaxed/simple; bh=LvjgQGgL0Wz/MDWHW7PN3eTY0hDprMvFuMvVC4I1sGI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WZsPeygrfEL8XijBWeBpqDaYlWYQizN4U0TMz+hlZxg/1o3duYfK0O9QWcxVsagGS8rvtHKCF7ToN9eGMM+6+IEOGNUj+nMrvVmwOFWVTmiVp4h7VffTyvkTcdjzycYeS/mzZzngxVyT6Ipzb3QKOCg5bdYF7jw7uYBwNcbgCDo= 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=HTUh/qrv; arc=none smtp.client-ip=209.85.166.53 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-f53.google.com with SMTP id ca18e2360f4ac-7cc0e831e11so170579939f.1 for ; Thu, 11 Apr 2024 08:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712849967; x=1713454767; 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=V5mzaQmM9seghk8pfFNXBPZTgd7LDqNjJYdodgsGpAU=; b=HTUh/qrvAkRD7QRTxzz/S0gTx3eWIGoUQrqSuoVMJZlnzDa264jhgYX8wzJJOG33Wk l9vQpi9OKMDJOum3NOGj/t+fF0OyXWzh5U/M8U5unbK25H1pbsnmN+3ZYBsSurXiWPM8 iTdWb3ItUD5YVDeCiHUjs95R+zKVPsEbJVtJ4n91Bx4k4eigY4hQN3yeAmpOt9aMmWC1 yImrGr+fJkSiQE0eNFQvZbdE4yKWmH1NIXNy6wXx1CBvDTLrVrsMHbtZFu9qElpJulPE L7icwgibNCPF4iRdl8hNUKRG9XMjtc/XOsdNcpF9x4JJs1m9+MY08fIC87oIUBQctgHP r6uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712849967; x=1713454767; 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=V5mzaQmM9seghk8pfFNXBPZTgd7LDqNjJYdodgsGpAU=; b=WrAmpy1nJ0o3pbBhVOL3LFjcDPBhlauehh8O7c2nSIlq3Xl92JOyQyRT7YkqVSr0u6 JdHFLOefYq0TIJ15QUIWpenSnh9pF+9aKxloBcb+YZSVHqjsDoThqnSTYPSyusVJ7dge hfEAYL5lQxZw9b7yZqN1XJJ0ydO5ZOpXlPflSvvXAuDTDl+SwGrPX7EyWgsKkSjon22D 2tQhnPbjWVtoZ1bcnQ6TdNsHnr4OGDTJK22xmu57LDydq5+j/GHwSU+5reQ6yEl2CIKB 7RxhtR2n0fGac/3YhFNWmwUK/nAYn9gCOuDnEjj+JvInyQs9qZ+sn7XE8vU0E0wwc1IW pgow== X-Gm-Message-State: AOJu0YyLN9ct6/FpCOUoz0ZTJR3u/vilOYdpzEpBWiRgt9YbTj4diDQ0 hme72V2zWFXtimJpc2seDx00FYjBuSFH9vtRmIAAsyKnZ99OofvoiCGmILWicLpFS0HEjmmxu6/ M X-Received: by 2002:a5e:9907:0:b0:7d6:751f:192 with SMTP id t7-20020a5e9907000000b007d6751f0192mr189480ioj.2.1712849966730; Thu, 11 Apr 2024 08:39:26 -0700 (PDT) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id jc25-20020a056638891900b0047f14b7f6c0sm457056jab.5.2024.04.11.08.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:39:25 -0700 (PDT) From: Jens Axboe To: linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 281/437] watchdog: wdt285: convert to read/write iterators Date: Thu, 11 Apr 2024 09:17:01 -0600 Message-ID: <20240411153126.16201-282-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/watchdog/wdt285.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/wdt285.c b/drivers/watchdog/wdt285.c index 5b7be7a62d54..eee5aada2ddd 100644 --- a/drivers/watchdog/wdt285.c +++ b/drivers/watchdog/wdt285.c @@ -114,9 +114,10 @@ static int watchdog_release(struct inode *inode, struct file *file) return 0; } -static ssize_t watchdog_write(struct file *file, const char __user *data, - size_t len, loff_t *ppos) +static ssize_t watchdog_write(struct kiocb *iocb, struct iov_iter *from) { + size_t len = iov_iter_count(from); + /* * Refresh the timer. */ @@ -179,7 +180,7 @@ static long watchdog_ioctl(struct file *file, unsigned int cmd, static const struct file_operations watchdog_fops = { .owner = THIS_MODULE, .llseek = no_llseek, - .write = watchdog_write, + .write_iter = watchdog_write, .unlocked_ioctl = watchdog_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = watchdog_open, -- 2.43.0