Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1197642lqd; Thu, 25 Apr 2024 08:29:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpRDJT8gSL4vI067pa2sIPyh9olGFt/Vdt7JKKrMloSLFkq1KJv66Poes30mSBbgX+TL/YbH6Sa2L6j76dai55q1xqAH3LjgfW787YbA== X-Google-Smtp-Source: AGHT+IHM8hem05YnEmxb9yfyFVuEC+GnKSe15jlA28PtB2Z42f4Kd+Z4F8jooheFSpmZgLslq2J1 X-Received: by 2002:a05:6a20:2d21:b0:1ad:68c9:7e4c with SMTP id g33-20020a056a202d2100b001ad68c97e4cmr6855845pzl.43.1714058991219; Thu, 25 Apr 2024 08:29:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714058991; cv=pass; d=google.com; s=arc-20160816; b=cTP4UsLaFRfifTAH8Z+43vE7mDGeWF69VLrxLPPF//8zKVmCU0o71pLvV4u56Na86T u2EtHBkRIsAHGlJE+ORUaLtDZXlyyCXtpfJK/TWLwbKVjSNTcKcmFjErLkiY/g2RBfhC YLkusvrQsOpO2V7VL6Y2E1YPUtf6NXtdcp/W0a6OwExlLpZBV5Hg0rCkAmoYdP6gpzCs gnW34gjIzUAsKW2HzGC8ooksha+h+PxJiUok0kGd8enJnT5MGcD+sVkjfpVdmNiK/9Or knlI/8Uim/jfhR3lV2Ma+PYkxZFSxwLXrTNIP5u0L7Y1DGcIGgCTyDIVbn9SQUpYNeM0 qN0w== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=TVzvIdSysiCQUUen73Bj+sLcl+k2nyJjAr6PCZt7XT4=; fh=rnm0oTB2k2JOMGKboY/gdO/IAMrvfK3qki1xKW1bHQ4=; b=bAXg41ZrNQkdNlfv/owmUyN+vxfPlHR9jk3hyE0vwA8jyczuOp1S5ZF+fkTAoDmRVp d2f2sS2LYaEQWU3x8AfxkEQ5cLVyGwd6/UbsgeGly5/qSMXj/vhLRDgdyeWcqaCLAdBG ANdz8u+yfqd1oJwP/GR0+FkY9tyUe3HB/kAOG5A9UobEQXsWLc/8D6zaR1k7bnXti0A+ /5SjD//qVwJ+A4JgvNAowUeqE4YXx2LBFEPtCaH8ASQx5F0BetSLU2gT7mJnV/vhflGE JSwlebfBh858ExB32438/cPHYTL96stFXJD7o0oZBOqqg2ZM6BaIE57uDDq2+2sO+6VU 3xNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=vZ2IK7Lg; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-158754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158754-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 d131-20020a633689000000b005dca7a43069si13143695pga.603.2024.04.25.08.29.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:29:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158754-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=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=vZ2IK7Lg; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-158754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158754-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 CE0F7B24F44 for ; Thu, 25 Apr 2024 15:03:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93E1B14A63D; Thu, 25 Apr 2024 15:03:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="vZ2IK7Lg" Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.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 D684514A09B for ; Thu, 25 Apr 2024 15:03:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714057417; cv=none; b=Q4qIW5r+vr+Ef4uZ77O+qz8mafCDUJi0fab1AqjuoKyOpN+7fMzTziTXb4UjRyvJMI1zhZIqxjvBPNMKKVuUV8eqogTx5jhSD68rhRuMvLiHcvDi4LYYcM2sJ3m3whZbFNF8HyQCbFajHXPEWBmd8/3rnz5a3NCMHA0lFClbbSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714057417; c=relaxed/simple; bh=6HVultyKajYKe1H+uYe3q2OjaTtG4U901xdI1ul0mzg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=WQkm+3VjqkgYvM7dg3qysFZqPk3oBTg1hMuNgEsfEfcsEHt1RfcOUIabng701M0c4TbT73Mizu7lUa4GwE6OgS5y6GMAizIAEXviAqY4NPHNJ6jF1xxd5S04Zrtyg+0+yoRsRZ3K1EJ6vc/0IsDeBEGWKhCIoy5L8ML/sn5haog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=vZ2IK7Lg; arc=none smtp.client-ip=209.85.160.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-22efc6b8dc5so722553fac.0 for ; Thu, 25 Apr 2024 08:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1714057414; x=1714662214; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TVzvIdSysiCQUUen73Bj+sLcl+k2nyJjAr6PCZt7XT4=; b=vZ2IK7LgLhbBoBnz7IHLo0FqRTI/tkJniG5xIH3D4dWRXRzKyz5BHZB7NZvaHo0Kdd JwAuBZOhIxM7brr9IGfGxUN2OzRHCuIReG1CnaB64GEMZTYRsM+TfQ9gKMi79Rg7+Fs3 KPNwVka+xoLKC4uFQsAbiji6UD7XtuyZUoZQAF5tDtJrTz5umkpnBUH+0nnKUYIvQ0XU Wz3ENt4PzAXFyhj8GlwYD22hdeZrUVBQPKzTQtRKwMKNBD3bq+dxNUvccHHNcH/Q3b/L znRzYxwZhCQMCZzyqG00VHaTRKQn4d7v6poN7Tv6wn5lgAd+P45pEuqAlaq4ueCmbtMq QEbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714057414; x=1714662214; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TVzvIdSysiCQUUen73Bj+sLcl+k2nyJjAr6PCZt7XT4=; b=dMoyIliHO1hZGPHxhd7XpHLBt/PElNzDh3eu/Nmb+px6RorSFBdIOvgB8e3ohRSdRg IYGw/WBurriI35aZqMoXR7ee9213kBQbttSlNaG2xHTSSRkTfN+B1h2NVA4IKjXoSJo0 o7IIPvAFI4AKsgLOWTedJznf9UUl3sytG0ODCxNJAKUCxgORfXpUp/ayuDdCS9EzGfFM T2NhALs3NkpuPGdSWw3gjozraFt2/AWLJSRPtr7wVt9ToNUnwVkjkoFn7sqMsYvEEUDl xFSJO39dI/wlcrbln+nqNjO9Znin0872Ssjkz3c3g4cEDmcJ966yP9GAMrp+57rhaQu9 j0vw== X-Forwarded-Encrypted: i=1; AJvYcCVlsgk/AfYE7CL/45UBP1sb8Uf3HM1blVTUwCOdWxDimdVOfti50OSKVJsuAQYfhxzVyxsbFCu4fxzqwc/z4Hm4xXLVAyhmgXWGuQCG X-Gm-Message-State: AOJu0YyGKU43cQoDlQIRlj4huD3EjgSkx3rInF+r4iOmy/3txmtgI7IS y2TLvT/80xJ1Qe25Ueoyff5qk/SPeSeCuAUSXGXV4TnzZI2wfcCvFrhsoqEQka4= X-Received: by 2002:a05:6871:4393:b0:233:276e:6bbf with SMTP id lv19-20020a056871439300b00233276e6bbfmr6917951oab.15.1714057413979; Thu, 25 Apr 2024 08:03:33 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id mp2-20020a056871328200b0023b6d4723edsm166739oac.14.2024.04.25.08.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:03:33 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , Lars-Peter Clausen , Michael Hennerich , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/3] iio: cleanup masklength usage Date: Thu, 25 Apr 2024 10:03:26 -0500 Message-ID: <20240425-b4-iio-masklength-cleanup-v1-0-d3d16318274d@baylibre.com> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit While working on other patches I noticed that a few drivers are setting the masklength field of struct iio_dev even though it is marked as [INTERN]. It looks like maybe this was not always the case, but we can safely clean it up now without breaking anything. --- David Lechner (3): iio: adc: ad7266: don't set masklength iio: adc: mxs-lradc-adc: don't set masklength iio: buffer: initialize masklength accumulator to 0 drivers/iio/adc/ad7266.c | 1 - drivers/iio/adc/mxs-lradc-adc.c | 1 - drivers/iio/industrialio-buffer.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) --- base-commit: b80ad8e3cd2712b78b98804d1f59199680d8ed91 change-id: 20240425-b4-iio-masklength-cleanup-86b632b19901