From mboxrd@z Thu Jan 1 00:00:00 1970 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 5B11B1DD3B2 for ; Mon, 19 Aug 2024 19:50:44 +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=1724097047; cv=none; b=epNdnrx928hgRqF4yQIAiXAyJO+swhV0rurZhVmWTGbFtolbTdc5q+4lJrFnsmL3MfY55vX+jYOQayx2McGaJAE5B94Uy3ktrG6PDv0Ei1rshX/KqSrf6KTOWwrNLgJ0l4X7J1TcThW99gxw20dtUo0Uetj0RTm92hB9O4sakco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724097047; c=relaxed/simple; bh=jO29POK3z1BLcm8HkuO4Cegavmvack2+hlF/5WU8GyA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=p8pypG/65eGv5u1w/C8zv+IQqMCGeTMkoocy6FZxRkFwzQDRMwUBpoYNhKdFJ/XAIWjHJOhF5hfdYQOWQ07muf4Nf0XdyhU4ihzTH4DKGkynakKKRge4awbZJEXa6SnDzJ3CHkjd4rgxpSzpPA53InXxYbV3hN6qaO+skuB0jCo= 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=E18kVlsu; 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 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="E18kVlsu" Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-26fda13f898so3197110fac.1 for ; Mon, 19 Aug 2024 12:50:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1724097043; x=1724701843; 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=CqNKkZ9AVI01Zp+n7dR1XvaLaD7tPIHVV7B+MTLeBAk=; b=E18kVlsu68n83V4oKQO8Bnzmr3KPy/JftPTi0ffB1y9kSsPVVGuZxBRAk6pn76ksfl D7cll/PwJYj+IU+mZJWk66N5yZzJUTM35nF1UjPXzD93KykJjcImAcLUc0IvELiGiDpZ 6L0JhdPc0MdBeOUR3i2Pk5dH/wz2zUigJtJVmGn2TigOweSx3771bbd6Eji5GFwF+lPC WcFYbnpDn9IpFHh3S9Yl7C5EwmOczSnLiDkF88ntQylH7t+PllLRTL4t/Q+PG0MLjx8f K7Pl+c60afKryQy8Pr2mP6cYElhqYcimrHUraVTyCtpRxKGuIx2zdyvyzI+W+TgIaVy6 8AMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724097043; x=1724701843; 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=CqNKkZ9AVI01Zp+n7dR1XvaLaD7tPIHVV7B+MTLeBAk=; b=XcSK8dyiR1/I9uACJDI2/hQoVzu1BACUqGvtWT0ElsTxf1i+RNsTth8tKzYZulxMFI CbRaYKk7YERbz5qNfDC1X1Kzn+dAJNciHjbU2b10eJHN1b+1p3LK3nn/YaUjqFZTLMvS t/2trBoEaDCShNJA/9jCB1+Vfbh2/0AwqK+Ic11VkT10RTsnwshdJ/50XPqAl0WJenDR kp+nB2FJvs7UQSnRzSQi2xH0dHqWH3GaICQM5EmS2taK6Eb4eSZdQipRt8hgsyUIbFLq lw9XTRaFc05JnW5NypO66tlaSZ7H7mYbTp8vFsNulQM2bBvhbrXcQ+Qx+MOplvM4PWPi tDQQ== X-Forwarded-Encrypted: i=1; AJvYcCXjFGmCJMpFJDlM5u6Czu+MzysrDZ2e4H0Ryb6lha573UUVsKbX6PS6EPVxM5rrlZwLu6SXeNMz3fBteO0=@vger.kernel.org X-Gm-Message-State: AOJu0YwyNsMhHm7Q4FehcHij4Pq0gImAEIfwrz3p4+OtdxIHSYYvpnfD TFZqRcOOLoQL2tpVdKTJ74yZcb7cRNcdPsbk2pKueyozUQYbgKBapLrsTt1iqMUWO9ohel9c7cj b X-Google-Smtp-Source: AGHT+IH3NZLD6naQAd620byBrGpPpV42gGrLR816WbcxoFuLqgsRjryfMf5ic8YQKRyhO2VYJrpXow== X-Received: by 2002:a05:6870:7f0c:b0:269:2708:aff6 with SMTP id 586e51a60fabf-2701c37eb7emr14217799fac.16.1724097043320; Mon, 19 Aug 2024 12:50:43 -0700 (PDT) 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 586e51a60fabf-2702589f29bsm2487392fac.19.2024.08.19.12.50.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Aug 2024 12:50:42 -0700 (PDT) Message-ID: <386eec54-025a-460e-8ad0-d1ae87ab7c85@baylibre.com> Date: Mon, 19 Aug 2024 14:50:42 -0500 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 0/4] iio: ABI: audit calibscal and calibbias attributes To: Jonathan Cameron Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab References: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> <20240817155203.4525f9f3@jic23-huawei> Content-Language: en-US From: David Lechner In-Reply-To: <20240817155203.4525f9f3@jic23-huawei> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/17/24 9:52 AM, Jonathan Cameron wrote: > On Thu, 15 Aug 2024 12:22:09 -0500 > David Lechner wrote: > >> While preparing to add some new variants of the calib{scale,bias} and >> calib{scale,bias}_available attributes, we noticed that quite a few >> of the existing attributes were not documented. > Thanks for tidying these up. > > There are some scripts about (I think Mauro Carvalho Chehab wrote them) that > scan sysfs on a particular machine and report missing docs, but we've > never put in place anything that looks at the code to figure them out. Thanks for the tip. Currently, ./scripts/get_abi.pl undefined --search-string=iio doesn't catch anything because we have documented the directory What: /sys/bus/iio/devices/iio:deviceX which gets translated to the regex /sys/.*/iio\:device.* which matches everything under the iio:device directory. Maybe `[XYZ]` should get converted to `[^/]*` instead of `.*`? > > Gut feeling, too fiddly to maintain such a script for constructed attributes > my maybe could be done for const ones with the standard macros > (so pretty much nothing in IIO :) > > Applied, > > Jonathan > > >> >> --- >> David Lechner (4): >> iio: ABI: document calibscale_available attributes >> iio: ABI: sort calibscale attributes >> iio: ABI: add missing calibscale attributes >> iio: ABI: add missing calibbias attributes >> >> Documentation/ABI/testing/sysfs-bus-iio | 64 ++++++++++++++++++++++++++------- >> 1 file changed, 51 insertions(+), 13 deletions(-) >> --- >> base-commit: d505a9dc8de83df2a8ce8c9e780f7b29887f34af >> change-id: 20240815-iio-abi-calib-audit-fcc21b1c6892 >