From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (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 A14E321D58B for ; Mon, 17 Feb 2025 16:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739808342; cv=none; b=IEsDdwll+T9oJdYBMif0uYgrWEyF41s+7z/6z48O6tbWfMS/QS3sljJveiY8afaz0eRI3bz1+/py5Xkw9FAMhy42OoSTMc7mU/Hc52Ayz79av+5AVJTRljJnp1ewI3TZVO20Z1ZvqqtZx8xhlK1vP9ZOfpJAMhV2oVtbV/MgYB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739808342; c=relaxed/simple; bh=OiKA4aUo/Tp14RS4IEYPAeGfKurka1AQjhjppkRlX5c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Qr8AQD0CqoP223YwwH7gznkj4XWyDkDAdyroa90A8GYWxIkVVEyWNCVbtdYA5sldzxycUX8o/jM+i5zwcDFJFv9d2jABtxLm0QPbML3FSbbhYbcJsXd20UTiI7bMMD5be24Lo6fDwI0bcjnFsGhehNMYw4KvZ16X1UfrmkcjSAE= 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=ralz/Kvf; arc=none smtp.client-ip=209.85.210.49 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 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="ralz/Kvf" Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-7270003d9c8so2613045a34.2 for ; Mon, 17 Feb 2025 08:05:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1739808340; x=1740413140; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9fDCxlqqYTROYIopC71Fs2SbX6HlBUj2Qyjp/1jneC0=; b=ralz/KvfmbZGyIffTXjI+aBeiMJVLqa7h7FN3s3bcgdhu98zNNz3Yppmgf848zo8pr DeXWcVIfwdOr0ublAQz2p1gSY97mt3QHNH35Cem2rzXWHU0qQXEJ+rf+PmtTnk02Fb5O bIfKEiDsGLezAyXfvd2SM6EUElYT8/+OZkSgPBYB0BLrgQgr40e7hWeqIw49JHVOb4UP okdmBTD7enLPAzvtyGfvDsLQ2S1CIgxD+yUarpbOI/3kbXDITsNOVCxW7WzErJUxjesY JYX9v+qZoSDd4xfMQPcte9RqlceXKYdE+R8e8G9gFO4sUyjfbH/kanHfdceXcb6Xj7k1 NAQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739808340; x=1740413140; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9fDCxlqqYTROYIopC71Fs2SbX6HlBUj2Qyjp/1jneC0=; b=cfFUaTJ6FP2K3ttw37PqBZBDxaGqauXxr84z80GKIjvFx44viFvQJ6CN0YAJFHdLR1 0dHONEdPMS8spr6WEWfgPhJkmGwXmiXWIriHub06X4KsmeTLDBqX0WQ8NkzOvad7b7ha utBY7I9VdCIUKJfVPlD9xvrUY0RJJ4q/xtHSPx57WRubjVs4I5J78TVNcz18OANgPWM6 VnA6gCsKmNFgufc332NLWSlXjE52JPjajOjbKTc1JVxEIF/YRG2x3pmZ8XQTLEQRjXlR vCDoQdNQwKrfvYpTOCA3kJK0nIT90x9NDoNnDCvDOUhEgYy4M+KAh+DzC4GtvV3jA618 M2RQ== X-Forwarded-Encrypted: i=1; AJvYcCVLXt28bJhVIJF8fw3hFDy5qpZC9Wdyi1pTUWIel6bKLz0Lt31k124AVLtDYi+40iZH7fBhWX4kSYZ5c94=@vger.kernel.org X-Gm-Message-State: AOJu0YxnpJPltAANJKF4NpzUMaHUz94vM5XONMLrlsfLpKNG8PTrzV3G qByNz5I+EO6cukD0XHz2MVWJO+vlLta2N8RKGmM1aiJeYDvIt9UeNsweEgtpCqlbWylGNO3XaeH m X-Gm-Gg: ASbGncsWmYcyYuGOh/HOFQVHkoFjtaBhTlM7ZdL6Km+iM0vDf4UBTycjSfhZ4I4fTu8 pdxS2ni6x4KxP2wY4o5fHPcTX2JoKUlu1+minKZM5JS177Zc9W3+tvZUgZj3Ufx0AQtOJohaoBg xqg8OBnHB9LZiaecwIlyAkGyGYwzzRuesdMUvH/aPkhN0qHWF/vJSUwE1joI/D86AIYrUsQR5ng Tc/DYl9RGDBzdoicYBW4h4VECYaVp+ykPjbOsDZidv5hZUTxHOSumAiq4vK8lygufMsOHmmJ0wJ 8tWeUbQUEtVsy5qAF4Ow++mPvN/zwyIU6dM6dF8Um37MhGZisnhl X-Google-Smtp-Source: AGHT+IFXxl2WaKxTJ2Vj4lUN/dvY7V3JkxZr75Hi2Fjyuc7TEbZCG+1LhZYOn3WC3wYUrCeDTRol8g== X-Received: by 2002:a05:6830:4582:b0:727:25c6:1b69 with SMTP id 46e09a7af769-72725c61cc6mr1643254a34.1.1739808339759; Mon, 17 Feb 2025 08:05:39 -0800 (PST) Received: from [192.168.0.142] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-727256d9cf1sm588687a34.33.2025.02.17.08.05.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Feb 2025 08:05:38 -0800 (PST) Message-ID: Date: Mon, 17 Feb 2025 10:05:38 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/5] iio: adc: add helpers for parsing ADC nodes To: Matti Vaittinen , Jonathan Cameron Cc: Matti Vaittinen , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nuno Sa , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <337895af7418a8e4b20b5a9322344b68082508ae.1738761899.git.mazziesaccount@gmail.com> <20250208164111.28ec9f2d@jic23-huawei> <20250211190714.4db240d2@jic23-huawei> <26907711-45af-467b-89c1-8895ae3a7ab8@gmail.com> Content-Language: en-US From: David Lechner In-Reply-To: <26907711-45af-467b-89c1-8895ae3a7ab8@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 2/17/25 12:29 AM, Matti Vaittinen wrote: > Hi David! > > Thanks for the input! > ... > Absolutely. I had no intention to do anything hardware specific with these helpers. What I'd love to see is IIO-helpers which allowed passing device pointer and a pointer to iio_info - and getting the (known by the helper) device-tree properties parsed and filled in iio_info. > > This sure does not help more complex drivers which require some 'not easily parsed' data from the device tree. But for simple drivers like the BD79124 this would allow drivers to omit open-coding the loop locating the channel nodes and getting the channel data. > > Maybe a small improvement but one can't deny it still is an improvement, right? :) > > Yours, >  -- Matti > If there are a decent number of drivers that can make use of it, then sure. I'm a bit biased because I've been working on some rather complex ADCs lately and not any simple ones. :-)