Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp466828lqr; Wed, 5 Jun 2024 11:01:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3RMxw+DEpwPzu5VRrQZXKSjhaWipVve9bYW1qnHr31R+FrewsMCEkUXWkMc+iukiQQju2A+rkwxrIXU6KB348dXnPqq5MSAvYclZTbA== X-Google-Smtp-Source: AGHT+IEyP47nxK6zRg5y/v+KyPpAhWBrNToJmZXowcp2V9N2FjXq8AoB1N1Z9whKkiMEmkd6gjxr X-Received: by 2002:a05:622a:14c9:b0:43e:3c3b:d9df with SMTP id d75a77b69052e-4402b69f349mr34963091cf.61.1717610466591; Wed, 05 Jun 2024 11:01:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717610466; cv=pass; d=google.com; s=arc-20160816; b=ZYy7nPXyV5qHZOwZZiB1VfvqWuhnK18ivZRFz+hGbsKlqiOsMQLgN1keaDqEbVFi+c CST2QGTmlyUX/9E/YkUWLQoLUmz7z4vpbQD3VRJEkX4/DA3CCGT+f4TTmPLjJPNHoXNY 5qdU92q3mI5zwgz0/Gh0ezVnDb6afe6xKI+aQVRj1vIq73/mSI2yjhNksVXR+Trqu/kU x/c6SbcnNkFyrjIqBQ+sfyxmG+SDZJEUaxnGu2RVMYo2onrAB6zGrYg3tiKVi97hwuvh d3dAxjV/vncLXGDfs4+hI69ftKpqaq/41oCousfSZDdEe1Df0+NjE5tZe5YZ6CaxV13l O3zg== 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=nEr10taYCu3WGRiwn+CGqfggqJNbp7A+We0V3ygommI=; fh=1AJ4RAvOgMKKKi41RrhkDUkeI7o1JcYi16dJQz1syUk=; b=brdaNt2VQzSA1Gg/+thhkYG9ofYqWwBt1JWIxQ/t8bDe4mSgOAdfG25Y5tNversDHm KUox5IbVvWAc60+fHiN4bCIrAfRSn4/WOZ0ecwiC0iw3EwIt0PJS0oC461UguTVo3bgZ HyMLCd4J0yiwTGY/Ty8oSYTGwxeruZiehvDVfS2R9IEwaJ/825DOXYISArTjdsDVIJxc 281kcHXj2dzkDg3+COdgx0XOZVISK/JoOBKBoyFKYqclF1UlEJAtQ6yJhBRE49LhMGAH /SNTJ9NSFudE4BZxqPE7p0cDotMg2cHppbFgtvQ0mTbvjKgkV3s0VGDHJVp4Q/lfddmk 6yAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=J4iEbje9; 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-203005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203005-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 d75a77b69052e-440360ced78si3668421cf.222.2024.06.05.11.01.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:01:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203005-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=J4iEbje9; 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-203005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203005-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 B6D3B1C23721 for ; Wed, 5 Jun 2024 18:00:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B669B1420C9; Wed, 5 Jun 2024 18:00:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="J4iEbje9" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 C586B13D8BB for ; Wed, 5 Jun 2024 18:00:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610407; cv=none; b=dj8KwkIOif1Ew7pSvlSaeao9ORR0joe7YzG2lLdfcHW4nkpmZPcysKPEV7ECW99mGCTPWIJHdCPPbObH8tGa49nov7emJ9VEJWJkhnHbxPrzUIxLtjJ1pTxr4eLrABLQyPGVP2/o8PEJTN8nWcZ5Jk+bdF+U+8EXvNPMw/oFAKs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610407; c=relaxed/simple; bh=ipr39Oe7qflzshs+uqKeD5dsLOI2DywzVbGtmwc3XF4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JUQPpxuQry8lRgbAkyZixMS8fgvYyLblUROg8WF7W1ezKR05sw12CQEKslUgthtKTQ2GW/qRIl/kF6ndpBPPAVdyH9txNcsZ0T5Tr4xTb2DDDEo8VfJx+cSxW/PdC7FuN7UQhMb6zApQnTEkZclcq8ovIY6+7lMfQBA3WHpvPFQ= 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=J4iEbje9; arc=none smtp.client-ip=209.85.219.202 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-yb1-f202.google.com with SMTP id 3f1490d57ef6-df78ea30f83so1550305276.1 for ; Wed, 05 Jun 2024 11:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717610405; x=1718215205; 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=nEr10taYCu3WGRiwn+CGqfggqJNbp7A+We0V3ygommI=; b=J4iEbje95ninWiXtqqt5T/9d9/rhCySu+uRgj5M+PAahakXxAmJMwbOM3Vl+q9ipwO cR2XMTaT3Cl6rtmhHcCzhm9ADVnFZb1p7yDmg+5o5KLMVVkrKunBBEwcfC6DifTaKXZY +22DMkjtteZbmFu3YZvAFV37gq3FnCxnNGemPsZXaxgCOZFtLwTgb/ySUoNoxgKThXqI /j358DaGUSozaVs/XrXx5gTTjXCJvJ2f3lRsZKCCy3KtAdh0gF3OvCEX+ecoMyu8HbjC QoZmOUWx+hkMmSCw6alLz9KvgAyuX7At1Lbtv2yzZUUbf2fKO7pPiVpatVP+Lflv7Hil VtlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717610405; x=1718215205; 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=nEr10taYCu3WGRiwn+CGqfggqJNbp7A+We0V3ygommI=; b=ZQNBVzo8je1ZGI+Cq0Hmjtgdn12Adx3qtLMuuRYt7t64ZfMo7caQGxcYGce6PBzMOO cCq8lloPowHcS/9kAptECCzrD6Gp2RPxClQXEAYhAL0kfGUltlSHBO7+sSq3SYu7OYMo 9POIztJSk3HHKcgsd0c7Al6PoqcFwiWeIjTvJU0/xln/+zXSiGhVmkE1XUYSwyAzIgxi 8/PzfgRCH8JamQposKHH4HNcjU5GFmWpEVFbK2FroQl64/g4e7JEm0ka8e8WtD4DXaMj h3nGJdD7Qa3ztMv/uqvLQFKxmmRq9m8wAaIhKSu5gERbVAAMn/AIh4y09go6sluEOCS6 crUA== X-Forwarded-Encrypted: i=1; AJvYcCWgXRz1gEg6GcIsPw2oQeulyhN72Owf2nOfBFemfB1in1aE0tJqMSghoYPn/4SvgV9yADElTSJSbClOFkOHZg7Xp4Wq9iG2ig7sbdEF X-Gm-Message-State: AOJu0YzEmZA4vnK/jPMEA+fCF4sMKwoVNDOhRbCzAzMGgyPyAe/MaLxb qgvvVhQlHuB+lp3mQ8fVPdDqAqD6AKVTb6RjaaAKhEYuz9YsppGuWixb01FMQ3x1loIPpFuKPGn OOc7WdxVG9Q== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a25:dfd5:0:b0:df4:eb0b:8fd with SMTP id 3f1490d57ef6-dfade9e0f4dmr76066276.2.1717610404805; Wed, 05 Jun 2024 11:00:04 -0700 (PDT) Date: Wed, 5 Jun 2024 17:59:45 +0000 In-Reply-To: <20240605175953.2613260-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: <20240605175953.2613260-1-joychakr@google.com> X-Mailer: git-send-email 2.45.1.467.gbab1589fc0-goog Message-ID: <20240605175953.2613260-2-joychakr@google.com> Subject: [PATCH v1 01/17] hwmon: pmbus: adm1266: 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/hwmon/pmbus/adm1266.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/pmbus/adm1266.c b/drivers/hwmon/pmbus/adm1266.c index 2c4d94cc8729..7eaab5a7b04c 100644 --- a/drivers/hwmon/pmbus/adm1266.c +++ b/drivers/hwmon/pmbus/adm1266.c @@ -375,7 +375,7 @@ static int adm1266_nvmem_read_blackbox(struct adm1266_data *data, u8 *read_buff) return 0; } -static int adm1266_nvmem_read(void *priv, unsigned int offset, void *val, size_t bytes) +static ssize_t adm1266_nvmem_read(void *priv, unsigned int offset, void *val, size_t bytes) { struct adm1266_data *data = priv; int ret; @@ -395,7 +395,7 @@ static int adm1266_nvmem_read(void *priv, unsigned int offset, void *val, size_t memcpy(val, data->dev_mem + offset, bytes); - return 0; + return bytes; } static int adm1266_config_nvmem(struct adm1266_data *data) -- 2.45.1.467.gbab1589fc0-goog