Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp470987lqr; Wed, 5 Jun 2024 11:06:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr/N4YRV6nZjc8sL9/QsJhX1Zwj2Ahh8uRObg1J5E0kvQhWEWkh4us5gQe7Vyl1VzOxonsV62v6GFBdtVtI76BotB2YuErMZGyZ3KtRg== X-Google-Smtp-Source: AGHT+IF2a0BN0uq3i+m63kivAoHSz8gulmvEviGnmNMkqa7Qc54RKn4U6UPLGxACpF4YPrVQeJzT X-Received: by 2002:a05:6808:309:b0:3d2:2df:647f with SMTP id 5614622812f47-3d20428edb1mr3392762b6e.21.1717610812614; Wed, 05 Jun 2024 11:06:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717610812; cv=pass; d=google.com; s=arc-20160816; b=J/qh1WvfU4hLVDyUC2wa2wo6CvPuNFoBGEPXS6PDKAG57eT0xKDRSha2ed39cxacgy g2GX0Iv/HlXlkmHCEr4wJzfTOSKdhyKUjESpEA42+PVXy+o4vHwuquviPYK8CEsD6wKP W/064FdVvGq1o7CcTl0tbSm5jOSAjfCN/zgZpEqm3HdUqHLq8kLPZh2QRoObNXEF4Lkc EdaoI847MMVuNz8h7HLTbMwgzP/QtRq5EZ2AS3MxHw9jb8qB9f/OaxldtGh30AG5Y5ri NuHHkmYUGVzXGEFRau/ygcqFz5LgC2IpRP7+wYPX9fFuDPGDnys8yVBkIsmKDP5t6160 j+jQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=gIyLXo+tPpGJoYrLFVnPX7LJcwSjEvXHtDXEdVowSIA=; fh=HqHJA6K6uYKsU3vFnVHlksxf9UU+JLLAGGZqG49G+tI=; b=c1GMsIcoPXUpfz1O+SW3Mt/IEZAzwIEB2ZSXdY672NCZpfB0TzhEIj8BfJhs2Xyhng EYNxPeDN7kQlSHV214Xo+vUMVkISnGmft6yZZ2x1HNPVfFjWv0H0Lg/OwtLVPBw17gyo hOZLSfWU5jPhVItgVAMr/swHc+HNOZkMICJvDYd5LpqsK+VuhNvnW58j5K8PvV0JDyRe JDmDq2vb3lGL8MmMUKoXZyxQJcxB7MzMmu4MDdEM2itthPxHxrcDi0Lk1SnuHnn8Exg0 VxrL9DS39m2xjwQHh7jklAqkG7aML/HAeBW0foOKvopiVemf2ThPZ5UPVuANf7oI5UV3 Ka2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=kNi4DOsm; arc=pass (i=1 spf=pass spfdomain=flex--joychakr.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-203021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 71dfb90a1353d-4eafedbd7f3si2227337e0c.4.2024.06.05.11.06.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:06:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=kNi4DOsm; arc=pass (i=1 spf=pass spfdomain=flex--joychakr.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-203021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 4F3A51C21E87 for ; Wed, 5 Jun 2024 18:06:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1CD214F9DE; Wed, 5 Jun 2024 18:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="kNi4DOsm" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 3C07314F124 for ; Wed, 5 Jun 2024 18:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610580; cv=none; b=rIiUnnB+kqZpidFKxtkKzVHO5j44uan58wZaGiXxhAy1Xz0vJY7ZbSt5/yryiw8eOhDcaB8m2cMqMbAUx9QLYP9g/ERm0+v31uJCrQOVSu0O8lx+mehK/Gh+yEM9Q+OCrbs+JWNuVZ0zWRs14QNuTx9hYe0f6/xkvMFufa22yNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610580; c=relaxed/simple; bh=F7v/jReeX3F7roR5IktBU242vDNjjn7EqsY7CVC37N0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=saBILyG+cE984zjuavWmMBij0Rk3RKjlvpSUndAYWAQ3lV8F+ept8YbTf8fxRE2oCT2q7BZ+WGl7qDOE3usDXqzvH5fZ1ijHu9MApFwmcXzocRqD6ritdIm6uXFJ9u3kL4ijIdKVJSQJPzZZwplaHQUk9K1tipjid/Jpz5Rm3zk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--joychakr.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=kNi4DOsm; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--joychakr.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-62a50486746so240707b3.3 for ; Wed, 05 Jun 2024 11:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717610577; x=1718215377; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=gIyLXo+tPpGJoYrLFVnPX7LJcwSjEvXHtDXEdVowSIA=; b=kNi4DOsmR2eFJD/ozPIJsZfY+u1FaWLBIwASVQfRGxgFjLlTOUI7zjev1aEAMfsKW/ 0yLbhyipzyZtFoC+DUR4FYJiSoXO5mH4/eulRQR9F6nT/ixTUVnH89p8nLpSKs+ryqZ6 PQDB5Kq9C8mDvTjazJGZigJLIebVnW2iS5jBdtWMwaDdH3Nm0KtC+riYBGgJRElKzcBc nb0zPBm9tbmB8B9Nt5DQWLR/elAziVjIPIPDCS45F2QREIVOQMwAJMr3aIZrSPFIy5N7 4I9Ab10rDhZjjGPg8NhmVnxMrZ1wybrQdk1R3hz/PGLFOiA1QeUxuqHLnxFWVNZSGdTh f60w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717610577; x=1718215377; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gIyLXo+tPpGJoYrLFVnPX7LJcwSjEvXHtDXEdVowSIA=; b=rXpdtZgOsUjqGqzgnDopIxptB9snhAY4FubJQdoYOav2hvgU3dm3Brlq/l/DIXwHvW 9pnc3wI9Pho/080yg42SGRBi9zkED5ocJOrlt126MbkwUdWwybynrk9w4nHdoAVJUoG8 Bher4ZB/C4Cp1yHoHBazz30PDgjJ4BPDxU+TQ3lJE31F1s5oGrgbfzjUKMo39G5Wuj8D XPIvW4QlvZAajPPfphN8b5911ggtVz5bDTh9xVp7WbPXyfYUFRq0SxL2yhXH6fi84d65 mWeSmwb/eg78WIeW66fy7nNDC1UxC2AEMfNti9g3jfe8yUB9uEhBrj3PqoAee2ULHkGX ZLNw== X-Forwarded-Encrypted: i=1; AJvYcCUI09jtDe6dnMshq9AAbB4hvnFxLRg883pXXBZ2G9SLO+rRFjwXeEs/xkrs7AE9Tgys6XMvEgshr9DcMHzXkxkYa5ol3+Ajkpb7i7NQ X-Gm-Message-State: AOJu0YxbE3XB45V47tSaOO7pnRqEl3xEw/AejKtG3ciIaykA/KtGpCNf 44lnWIHs7aTEtFEiCD0hQOqmwVK8dHggV7w7A5wjRE8RLCvwKFt3UlysXDXwKYMtOEVot3YlDIO +g88VJActpQ== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a05:690c:887:b0:62c:35fd:678b with SMTP id 00721157ae682-62cbb5ab5a2mr4622397b3.8.1717610577229; Wed, 05 Jun 2024 11:02:57 -0700 (PDT) Date: Wed, 5 Jun 2024 18:02:34 +0000 In-Reply-To: <20240605180238.2617808-1-joychakr@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240605180238.2617808-1-joychakr@google.com> X-Mailer: git-send-email 2.45.1.467.gbab1589fc0-goog Message-ID: <20240605180238.2617808-4-joychakr@google.com> Subject: [PATCH v1 13/17] w1: slaves: w1_ds250x: Change nvmem reg_read/write return type From: Joy Chakraborty To: Srinivas Kandagatla , Greg Kroah-Hartman , AngeloGioacchino Del Regno , Lars-Peter Clausen , Sakari Ailus , Bingbu Cao , Zhihao Cheng , Jerome Brunet , Martin Blumenstingl Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-media@vger.kernel.org, linux-i2c@vger.kernel.org, linux-gpio@vger.kernel.org, linux-mtd@lists.infradead.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-usb@vger.kernel.org, manugautam@google.com, Joy Chakraborty Content-Type: text/plain; charset="UTF-8" Change nvmem read/write function definition return type to ssize_t. Signed-off-by: Joy Chakraborty --- drivers/w1/slaves/w1_ds250x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/w1/slaves/w1_ds250x.c b/drivers/w1/slaves/w1_ds250x.c index cb426f7dd23d..369de01cd84b 100644 --- a/drivers/w1/slaves/w1_ds250x.c +++ b/drivers/w1/slaves/w1_ds250x.c @@ -137,7 +137,7 @@ static int w1_ds2505_read_page(struct w1_slave *sl, int pageno) return ret; } -static int w1_nvmem_read(void *priv, unsigned int off, void *buf, size_t count) +static ssize_t w1_nvmem_read(void *priv, unsigned int off, void *buf, size_t count) { struct w1_slave *sl = priv; struct w1_eprom_data *data = sl->family_data; @@ -159,7 +159,7 @@ static int w1_nvmem_read(void *priv, unsigned int off, void *buf, size_t count) } while (i < OFF2PG(off + count)); memcpy(buf, &data->eprom[off], count); - return 0; + return count; } static int w1_eprom_add_slave(struct w1_slave *sl) -- 2.45.1.467.gbab1589fc0-goog