From patchwork Thu Apr 25 15:03:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13643532 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 36D48C4345F for ; Thu, 25 Apr 2024 16:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=V72Z1rA1Pieo4r51+X9adc4EeJVzIUBJuKlnRQtgyDc=; b=Un6X18hKP9c//5 topnNQcgAhhaHHXmpPUoCFW3mKC80zWNaMvpTeRfet88KsQIEOnhscbONh0uU8OwswhJWY2ih0XJM +GO4peo1Fd3mzclRQ8xhmfGebBIvRU/04ALmpWNVN8oUzwCjJVW9kR0HQj9sh6MvAcPAjOedZNptK 9VA7I/wp6PBens0HW8mddDDDi5OO02+zbel1ep0EhIQCP8LW+2/KimUMb12RCvlUhHNimZcjeJvTF /V6R03V8fzJZ/cfIrUpDHxzGg0eklf4nansq5P1Ylvke8/vRV9eTD4ig6Yqp/KRk/uJmu4VvdVLhL jKcTecW6NOqGN4CKdXTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s01lu-00000009K64-27Aq; Thu, 25 Apr 2024 16:16:30 +0000 Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s00dR-0000000902R-35LR for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2024 15:03:43 +0000 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-22f01274622so602247fac.1 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=lists.infradead.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=nWv+y7oAmxFTtT+9SMvNLsaKrqP6bzJ4NrOxxS/fyn93ZCRF/21mCepK5aopMnWuMU 1ic4q1HyXC/sL0Ah0/0BZDT6Xiju8W8s/N16ZNbklVs4e7qHYUOKC4Yr5VMOjl4ipkt7 VrtMsFyWl1CwBa70bM6YQBHcOTBdrlQUepinqsuht5WIzzG7WgJWgw7VHmhCfnB+LiJn kme6qh1JlJ6+x5SfoOzjXS7XME1XPPM7DGCz4GCEcxLXVJ2QvlVnanyVJ3tcAjByvD/T 6FAZlvN+MK2qaziVZadobA1Cy/GQemV7XAmkPMhaIX18ctinAew0/WDY9XDXyr541KWH fK9Q== 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=Su325tYyLMaonABDE1KgG3DOAFWotjoH4hilbFlgBAgyhM3JJdlBIuqqA0aZZdgkCV dePbV1h2tIZMheiImY3Ei65ZxiyS83M0bFOJcqQBy5jWn74nS9DXjuF+QGOcUZd3YfnX RfoUn6xTCnCYSjaeX6hMBSmDrw557tpXFEceS8j7blR78Kf0PP3GBbhy6zj4MJ/D4kDs dMG7gMI/EBqPfvoSJn+VENLdA1PzjasUJ6rn5l83jib2Vxp4kDD9eM75UHuibo540kSX p3RgUqcuVg970QBZ/xdcINTo+HarjBR7/FT0QnXVlVrPMj8hXtfaTVrsrVg8g+dX/d84 LunQ== X-Forwarded-Encrypted: i=1; AJvYcCXGg+ZRr5PuTFta5qk6yu4bwqEgVLLdb/MhUgMPerejEOfNyL00j0pTLtq353F6gXWjms3UffDev6MwPVNZZ208qA5Dz5uasdSL29v8iwJzvsVRfJo= X-Gm-Message-State: AOJu0YwgRCsGtgkK3DPW7jyg1hWAcdbY8faVkJKt7gma3UpC69x2lm4s Cvhh3Aw2D9KcSD47diiJUcq1fn4aJZEbfeqJ8ZDnYlX3evghSeJiha3kwls5PDI= X-Google-Smtp-Source: AGHT+IE7uk/e9lPnEmRVtei7ZdUwH47uHhQ5kFtFyZHHsMq0kRAPIHbtnVqwEvJRA8mUQD2RSmGSfw== 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 MIME-Version: 1.0 X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240425_080341_799574_03AFD36F X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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