Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1197896lqd; Thu, 25 Apr 2024 08:30:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcvw+o82y+gVcAG+9aRrIyHdW23b3i0MfkTWO2Q4wpcIJctpmIjR1pdQfncec/+/bWtvZz27bfNFGJ2eo7k8L0/TP5I7pfNks0EL7Osg== X-Google-Smtp-Source: AGHT+IEtvYTMj/uS1+Od5BSIq6oe6+8ncOCfU22IL0hJMfVaptpAAODEnMBPQ+ng4XHOa7BA4u8+ X-Received: by 2002:a05:6e02:194c:b0:36a:254f:fbbc with SMTP id x12-20020a056e02194c00b0036a254ffbbcmr85664ilu.32.1714059010944; Thu, 25 Apr 2024 08:30:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714059010; cv=pass; d=google.com; s=arc-20160816; b=rCxb4PefYFXq2+7Gndh+st2Q9yssJcBuNowgc9NtgF/bKGf8jE/F7TBws3uh+zM1g6 Ar3mIIRQtq8yg+DqUkDT+1i2JNd8ZYbqpozZlNSL/uXRfHGZ4RPJdYck9wZb13Bp3SEk GWc7I6BnjnL/khMfHIE0bKwEYtK33tcwl6QT1IvpMFjdwOcc/rPD+FNTEJo41jMeNXho MNzO1pPuHi2lYwCZM773BPgxPjIHftmYuvDCBPGXTzOtLmn3me8zfvrLs0dpq+VOzLMN sqm0AFezVyHyfzuE7MwjmN6BTVLV9MmoWY9tDo3W9cfLufhBjs4jpSO3DZe4dO0wgKTb EViQ== 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=FuUgN+eqDnD1TSwHoUcLirGapuP4idukeuGNZ2DNfLI=; fh=FUxD6BicQo1CzTugeLgT9fOfyFxfOCRq3j7Csffu1AY=; b=kFEQ9zfX3FEKqvfxBtLBkTYl9iN3/cVNTxRmau0S+5RHshB6qdFV8HaKnNh9C7LNFG fO+0kimwubph6DncnoZvBtlBCp8Ex6m71lkUU5bjXkWEOv5vxovF1aHEAY5fyqFytiWl a0GDxjvsgH/5nZSpGPLPZLeJXnaeKtzgS1IYa5n3H3sbPsm7agfsvn2llG3dlUESQb9d f4f9EmGmkIfmQqYwZd+nCYhQDl5tXkzBqCSebQyhrSjSrGEPq5wXKLF6Cl2To2Snxyj8 Hs8K6C9zpfUD66BJ57/M8hwiJjtZBwWFf/4DBiC2TXcK80kNO3bb9cj6W6/hXCOqrGJr E9lQ==; 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=lYm5AtCr; 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-158757-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158757-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 h191-20020a6383c8000000b00604b87e10f6si4009530pge.544.2024.04.25.08.30.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:30:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158757-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=lYm5AtCr; 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-158757-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158757-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 6507AB273AF for ; Thu, 25 Apr 2024 15:04:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 511F114B07B; Thu, 25 Apr 2024 15:03:40 +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="lYm5AtCr" Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) (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 5484A14A604 for ; Thu, 25 Apr 2024 15:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714057419; cv=none; b=DfKoi2r6MBHzkjHMgdWqOnfGRTbSLvKmRKE2y3m2RvCm3TTYjFMFGVhVknBj7IcIwft7N30IGCQNJMnwO+09e1qOUQcFt3r/6QJDDJrYEHdh1la0xQQXdMMcP9sUsggaoSJ8f0iaD/4/bJhEkmvqcKIQRFyJwRvZgSid1Y0LLI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714057419; c=relaxed/simple; bh=c0UVqkjMuNtarShlxI0bIDMYPsBOuAUJ6QeQyiAWEuY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FqmWsIdowrCxo/cWB521GdhTjmlgmM7Cxo2sHAz2xUoL2c4GtXiN3+Aqq+3j8lEqgKNyS9JDNI9rr19fvl/7S+c4rokObQ6/qTXLyJZa6zlzc1YehiS/t47URPtLyyoDrx65THyKeZ0/Q2gwiDVUymnfW/Jy/kQxol/p+LI/Els= 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=lYm5AtCr; arc=none smtp.client-ip=209.85.160.42 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-f42.google.com with SMTP id 586e51a60fabf-22fa7e4b0beso474301fac.1 for ; Thu, 25 Apr 2024 08:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1714057416; x=1714662216; 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=FuUgN+eqDnD1TSwHoUcLirGapuP4idukeuGNZ2DNfLI=; b=lYm5AtCr7ClXsH4zVnZ7RefhauWfTi6b3MRzk5sA9543gVL5jRqOaiUiUffW0Tcstt /dciL2CXA9/9BOvD3xvt9/ODK+pyoK6MSI/I0jaCQ8BhDBiVHAwR3oM71QiHVEPU11Kj 61XRfoylO6ui1TM8dl+dCj6U+nPQqm+NgnmxD+O98aKihv65YvXji0oJHRweIy3ugACJ oC+sWjqiXHxQpE7WreUN10iv6LZ3Iv9FDIqrkqjcQzBstPS/VaWykDWt+G7fmx7cYDjl rzM9icX9Oka5gT0ugLLIZV3pnf64nuWWxO8U15BqSF7by2iWlod9mcyTrkWbZMZi3JKw k0Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714057416; x=1714662216; 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=FuUgN+eqDnD1TSwHoUcLirGapuP4idukeuGNZ2DNfLI=; b=JV1OCQF/OIZm/cOImPDNNaI1yeRNZ9s/4uSIyGBOefBRlVMo5OfuCWxqPlknao/0mO bzVzkyG2q2XD62606HK6IoAtxdhmJP7qx9GjzWVvwU1e8rSCoc2dvnwj/edZXfVjStw5 K3Y4FZ39lH/ueegrr+jAQikIXs0cclCzE2F58aaWdoJcBGTKMlB/dVrZqspzLPIOL+qO hbtLCxa7QqtSjBjQnHqQy+waoHY9Me6c6YJoM/97SO93tSl9xdDlCOQi9mZdA7JhGkES JeeoeqpbSsiWnxNN//83ouBx2dN6xbCYXNkZGeo2c2YdP2YXVhkkyjj0eO4GwcY7clH/ w/JA== X-Forwarded-Encrypted: i=1; AJvYcCUY3Mh6t5mLbpQhpgtVvNHZfjCbAB4gX6QpzVfnDuDatUlxTtyKtTka2fJn+Huti617eizwE2yHqMcPnhlSpjkJEKqDLsLRrG9CVo/g X-Gm-Message-State: AOJu0YwnGtxN+tcTs0i4TA7yni7ue5nTNGWBRCH9f/u1i5PRE0Y1aVnO JjgZcOBf7LSpfX4+OSjbPhJrIaU7OK8tZXaM6hceAZfZAy6ecZr1SI6ATPW79H4= X-Received: by 2002:a05:6870:9f86:b0:22e:de21:e084 with SMTP id xm6-20020a0568709f8600b0022ede21e084mr7083274oab.9.1714057415874; Thu, 25 Apr 2024 08:03:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:03:35 -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 2/3] iio: adc: mxs-lradc-adc: don't set masklength Date: Thu, 25 Apr 2024 10:03:28 -0500 Message-ID: <20240425-b4-iio-masklength-cleanup-v1-2-d3d16318274d@baylibre.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240425-b4-iio-masklength-cleanup-v1-0-d3d16318274d@baylibre.com> References: <20240425-b4-iio-masklength-cleanup-v1-0-d3d16318274d@baylibre.com> 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 The masklength field is marked as [INTERN] and should not be set by drivers, so remove the assignment in the mxs-lradc-adc driver. __iio_device_register() will populate this field with the correct value. Signed-off-by: David Lechner --- drivers/iio/adc/mxs-lradc-adc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/mxs-lradc-adc.c b/drivers/iio/adc/mxs-lradc-adc.c index 2e60c10ee4ff..8c7b64e78dbb 100644 --- a/drivers/iio/adc/mxs-lradc-adc.c +++ b/drivers/iio/adc/mxs-lradc-adc.c @@ -724,7 +724,6 @@ static int mxs_lradc_adc_probe(struct platform_device *pdev) iio->dev.of_node = dev->parent->of_node; iio->info = &mxs_lradc_adc_iio_info; iio->modes = INDIO_DIRECT_MODE; - iio->masklength = LRADC_MAX_TOTAL_CHANS; if (lradc->soc == IMX23_LRADC) { iio->channels = mx23_lradc_chan_spec; -- 2.43.2