From nobody Mon Feb 9 07:42:57 2026 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) (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 87D3B1B4C26 for ; Thu, 15 Aug 2024 17:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742541; cv=none; b=Io32J2ONuFUXlwUMVZEuu4J7WJpH3RySDBlPBdS4HXKQ8rGpDvbqQKPCNZIYAnPqU2UyoJxZ3yIlSrs7lQb8v5JYvUGl0gm6R6MMSuXIBDEAZh9ioOhHEXhoU8bFzDEgr/OGPeB6GLlAKPA2cBR749Qu0FpIBjxnzAhRA7+fRt0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742541; c=relaxed/simple; bh=WmTXvE8G3cxrHN9egH1FEwZfFqBMr42bXrUWyWymz9I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KOpBafxm7nTWzg48n5Mqo0DExHD+w8gWaOamQ2WveoaWSxxde1zgsr8tn7qJI4YbGJCYMc49Vv8PKq03oVWeVhejyQ/Yr1luCak+vSWyuXKwgSm1C1eX7LCUrwlhtkxwTTS4jr8mh992wiqh2osU5IRr/yZ6alIStauaAkJQZiA= 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=phoJ4P0K; arc=none smtp.client-ip=209.85.167.178 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="phoJ4P0K" Received: by mail-oi1-f178.google.com with SMTP id 5614622812f47-3db18c4927bso699085b6e.1 for ; Thu, 15 Aug 2024 10:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1723742538; x=1724347338; 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=vHRAF7kmvflKalOLusR4Jap2GAzcBGxuZVBcpBXyMtQ=; b=phoJ4P0K8j6n4/N4EzFIsouNk3DVItQOlq8BE/0KzYBYllYpdmJxZArS2dhUELXU/o H+Gra2erSzkxiv0wqLep1dmTjbQxS0UUY7Oe6v87qI72FHGVx6HP1lEuHQl9HaQte425 SXbttOTupTt2YgTFqmaOEWLC6a6uBUQapn9rcG1K/myQEVeYnE1j+lKFgXzxVbkeqmrH qXwOeS32E73gfpdXsd4cBJweG0ZDeuWB0wkNH/Nylp2QWnXiaU0b1R6KIR16M7LMge0M OXJbritqW0V8rqfircrwN3peMMYBYYHthDRW2tvgUP9YDZAIpSz6GslRmm4aEhtQNL/d 9YcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723742538; x=1724347338; 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=vHRAF7kmvflKalOLusR4Jap2GAzcBGxuZVBcpBXyMtQ=; b=id4Rog9dLFAA1GJbhKoQaCvXG0h7GdzOKmPsBKqwABW2c8c6raCvaHgw+raIDrlE6h 17Ym/7f1OmXE9fhKxTAE/tza0qYwYbz2q/NRlfhrYDmZsSdoaOO0gLfrnjbbdVoreLsf B7JZz2Y3tMZMIPNfDbM4lMSqRIsyeKGY23MqUQQtH7WyYD8TyTXeTkYA8LAXwbMCuzfM 5QvJgKVdKEtm2oI0iaQVfavRvSCm+qQTlKnGEeLdFh5BUlre0b2z20neweRzvtJAGG5k e+eK3URHfNidAtBFsb9NpvT583yKkqwNsrBaH+XvCprVcxdiZ208J/2OyU2HZJ9jNuyh gkNQ== X-Forwarded-Encrypted: i=1; AJvYcCUOHeiZ1KKvaYUVWVbKgXQE+AItVItamH2EM5ZNFQL7zPbkEAzEuQ286zl78UAkJAL+UaZfKD8+xwBgGTMrcI1SWoG9o9piV4P12fpR X-Gm-Message-State: AOJu0Yx9Df2TPxDnxrDODvKrDiEduzy1FRh5qtJKXFmCe3ndUsv7BBem vZHtVIcZBa5s1I8kuKPXO2XpriyRW4syAhh+GtcpuhMRoiXhQRACVqAB8lkwDhPBRfnbAzah0Nv G X-Google-Smtp-Source: AGHT+IEh4WplaZ1SJtcdjCsOA0FNThgn+ugIMMYYb8x0r3LFGNuPLS8DWjeiURI22hPEwttiGS0L4w== X-Received: by 2002:a05:6870:6c18:b0:261:39d:afa1 with SMTP id 586e51a60fabf-2701c3db78cmr207494fac.22.1723742538620; Thu, 15 Aug 2024 10:22:18 -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 46e09a7af769-70ca66297d0sm345327a34.68.2024.08.15.10.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 10:22:18 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] iio: ABI: document calibscale_available attributes Date: Thu, 15 Aug 2024 12:22:10 -0500 Message-ID: <20240815-iio-abi-calib-audit-v1-1-536b2fea8620@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> References: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@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.14.0 Content-Transfer-Encoding: quoted-printable There are a number of light sensor drivers that have various calibscale_available attributes. Up to now, these were missing from the documentation. Kernel version 4.8 is used since the first use appears to be in commit eb869ade30a6 ("iio: Add tcs3472 color light sensor driver"). Signed-off-by: David Lechner --- Documentation/ABI/testing/sysfs-bus-iio | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/te= sting/sysfs-bus-iio index 78eca1698123..67d8d1df23d4 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -575,6 +575,19 @@ Description: production inaccuracies). If shared across all channels, _calibscale is used. =20 +What: /sys/bus/iio/devices/iio:deviceX/in_illuminanceY_calibscale_availab= le +What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_calibscale_available +What: /sys/bus/iio/devices/iio:deviceX/in_proximityY_calibscale_available +KernelVersion: 4.8 +Contact: linux-iio@vger.kernel.org +Description: + Available values of calibscale. Maybe expressed as either of: + + - a small discrete set of values like "1 8 16" + - a range specified as "[min step max]" + + If shared across all channels, _calibscale_available is used. + What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender --=20 2.43.0 From nobody Mon Feb 9 07:42:57 2026 Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (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 3C60C1B4C2D for ; Thu, 15 Aug 2024 17:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742542; cv=none; b=hYjTnnCwuY4EIT/fSSj9XR5DwNiU9bjZFMc3CVQDIAbLGG/n99fFXyB0Ms8HFgV7KjNtpjwd858s4PpptqlTW5Z0tgJiWKFmZ5gHgivLQyw81nFMSrkYG00FrHUmc2Coh6ngE5hZOy9H7kr/0aeEvsD//bWD3icEE2ZbeN96Z4M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742542; c=relaxed/simple; bh=HTE9AF95FYEDE44Je5v0L+ZEBU/Bi9/yQL6SYE3InCU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kYPB4+zALXjuXZ2Jd6ig67q4xCcudZkIzv09vPU3BqxSJf+XMGx/SKra+3q/boIGRnRkhFFI2iilOYdeSuDuyuovO7i7KjGLN7//CPVFWROMp5f0GlNezSGVUNEbuvi1Q7ElnHIM9sLiZNimuuhZtO1U1yxZeXOjaRErlWm5K2A= 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=NA4KPlho; arc=none smtp.client-ip=209.85.161.51 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="NA4KPlho" Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-5d5bb2ac2ddso569090eaf.0 for ; Thu, 15 Aug 2024 10:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1723742539; x=1724347339; 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=wcesUZ+PyyZLACSq67B+2czdbFpwEBLROdXRTYzWgqs=; b=NA4KPlhoyQ0pL86j0qd0OgmEyLzMsi+VUWbx4uYhM6ba3h80OnPCRUNBemMVsFlZe9 K4BqaMIVdCdL25C2hm+n6EWjj1TjBSnI4cUV6+dVN+VhK9SVHMBDMvlBb1LAUGN+THk1 y4Zsa2hv/8JDszMYweQC0jEonM18oZFmMm+XigcVF6yYb3q9p4HhTVLt5VBqFRgTMY/+ nFWGjgPAhQFfAW4EKry9w6SfWMahtSuzL7VdROJfzSV6rmu2ejbYCpvp8A+Oz4RItVBG 2Os3JtRyi+sgrtu3CVFJegAjD8B0MbLmEzsFGrtyE0gZtiS8aM3oDJOUozQ25vLbQtGE j/cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723742539; x=1724347339; 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=wcesUZ+PyyZLACSq67B+2czdbFpwEBLROdXRTYzWgqs=; b=pC54M+u1xlyfAapcEmF7J3QjDYSjh+vyRmcnT5GG6FVlKZyOIaV0e+OC8PdwHhR/Eh 47Zq74joiwbedHl+52tQN427TWMBJr/x/cKaXkNkN/Wvp5tvFmx1EAzuJLiDmTsTw7iH eew77aSxSi9bV1M/emzTj92C1hwWNufpuBxVBmMraypEiQcehMkDDEUSxeg6mZGSLisq QsIRboI01nFQ1yldRNGSCOcdHm0Y5nweUT9pco2SXQ1EvHiXtQ7cAw9X8l8n7ZHysOhN 1vJ1X6ivWqVFscJmha2DwA+YCGasO8vwpWeVLy55RLYtE/jlHNwGM0O2L2eD+5bW3+vc xUBA== X-Forwarded-Encrypted: i=1; AJvYcCXXx0EA5jWfUVBW4SFfkjGf0M4yoLuGrnefcYHqY34GVll/GTJY8bDWL9fTE0KLJjdwGCKSvBIHZ1qAsw4e9uBO5qG9wYOtfBRCyIL9 X-Gm-Message-State: AOJu0YxkJdthaVp+eZOJnFbsGYWBy24z31lZqP69r9f90t6jV7mwr1KC pmhApqbfEljwO/g5YZFpDe04Pi4NAYjPV1dkE+PJwWivePGN/x6a43LyrUf6cmpF6W2mc1RPN2x c X-Google-Smtp-Source: AGHT+IE0IpVcxKXiE51xHAESEiTWRzrQ5ztPPnJYDYy6IwnEqG/maM6BAofsEHWuPvEpFKCslpu70w== X-Received: by 2002:a05:6870:1b0d:b0:265:b32b:c465 with SMTP id 586e51a60fabf-26fff476ebdmr1895548fac.9.1723742539426; Thu, 15 Aug 2024 10:22:19 -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 46e09a7af769-70ca66297d0sm345327a34.68.2024.08.15.10.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 10:22:19 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] iio: ABI: sort calibscale attributes Date: Thu, 15 Aug 2024 12:22:11 -0500 Message-ID: <20240815-iio-abi-calib-audit-v1-2-536b2fea8620@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> References: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@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.14.0 Content-Transfer-Encoding: quoted-printable Sort calibscale attributes so that when we add more, they can also be added in alphabetical order. Signed-off-by: David Lechner --- Documentation/ABI/testing/sysfs-bus-iio | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/te= sting/sysfs-bus-iio index 67d8d1df23d4..401e0a595aba 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -549,25 +549,25 @@ Description: - a small discrete set of values like "0 2 4 6 8" - a range specified as "[min step max]" =20 -What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_voltage_i_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_voltage_q_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_altvoltage_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_altvoltage_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale -What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltage_i_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltage_q_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale KernelVersion: 2.6.35 Contact: linux-iio@vger.kernel.org Description: --=20 2.43.0 From nobody Mon Feb 9 07:42:57 2026 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 0962D1B9B4F for ; Thu, 15 Aug 2024 17:22:20 +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=1723742542; cv=none; b=rCd/ju/b1tktXCgVF5CeWFPU9urJn45zTKeOe2f6tSFbtiCG6V5XHQb8a/2SuQv9hLFVomDrZHfkceqhLnZpAHuP7QpwUK0pOOehWNh9DrtvNwcnCBuoIrCGJjPEUTY/hm+pB8UU+vrZsny/VdLy2wkKWIRB+MnoZ+W6zrR1FAc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742542; c=relaxed/simple; bh=lQl5PN38ewp8fP1d10oMgjM61q8VF9A8RDMBz1cBMrg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GjX01sjh56kCb5ud2HaT5eNIfWmQ2/cLwBHtCPE4Uu6mzoQJVttv+Fdj+Rs1Mqv2DQPNQPqm8BmPAWSBp3of48AA2USPgx9EQ3tRczUMjSMGiw99KLmPcKjFrAO0pXcGRzlgsLLclCHVu86aI82c+UN7LScwJeNGBvw+51yFF00= 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=v1qQUl4Q; 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="v1qQUl4Q" Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-26827ec5235so854360fac.2 for ; Thu, 15 Aug 2024 10:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1723742540; x=1724347340; 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=iRorKE+dqmoV40ZY8LVTmZRhjf2w7HVyyAsDfTVj74s=; b=v1qQUl4Q+4nO7yjyt/2gs4BX6QsGdE3VqxKMQf+G1as6/R0M46STElifYqkrtM2uH6 6cKuoCwWomGTu9HxCcx0QATP9zDfPmGwN+I5DyTkEtNrwo+TwtnTdxhquc2Psky9a4Wr ZJKJJ8WERcCPCzgi2kSMIYWIZB/UIbutNKFwEYYbHF/ANq7Ri2IvfII7sOrHU2dI8/xh 6QflOp+Qd6qpcLKw+zQwRy7ztN3vCWHxHLPOgJ+/p3XhosPda/A2k5JJcjeO8L81TpZS u56rjxQ70ULxSANLgspUhtWp/YnVGtB8D63IhegssZOrg5tpSOq00leeF3s7u4ncsYkA VUjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723742540; x=1724347340; 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=iRorKE+dqmoV40ZY8LVTmZRhjf2w7HVyyAsDfTVj74s=; b=GYYsA91yASygfUmwr/Jl9Cn61yu5ZNQEGzL4dtVqcDIYzY0G+OwI+F1BGZFCmB/uiZ VyCyVLcxRP9J0u9kdZmoovxN/KGI0wf7cp5sevtyttsMM4F+ABUAD/2RDNA25dmYPFCg LmRQIqhi6pe3irO9clJlTTnd77o9KOlLmJUyVJ7UTEiebfx3kwM2M+GKAIBr+Sq1McTa QiH4EXpvbVKRZeh9OlfatGwIRnzPnB1ogAO/uc8Z35HWo/WXPnm3VEJd+kKX6m3sCWqX +SY2VTKq3RTbH5x4p1zU5CDJ9vowJuQC5t3eZlKh6V4wktRd1xziKmTRnlY+YIcG7ZLB RMJQ== X-Forwarded-Encrypted: i=1; AJvYcCX2WU/zH8kDUrJkfwsDYk8SbGlnoP1CJR0f6NRTBPEhxnKMZAIVZgvR8os8PwUgAQCbqVzRpIbHY5kRyPL1CTbZ37R78eG/up3LuBYK X-Gm-Message-State: AOJu0Yw6dkndQqn1SMz7KYe8r+N5kbgfdGrTQ1BcxVeTPUrMIqPi4Lae vDCN3s2VmeuV8LaPA62EGPRlHXKw3TkAx/P/td9PccN66aFs546YS63cr0E8gWE= X-Google-Smtp-Source: AGHT+IFP978w/cZSnGt6qU9S3P11ASgJOMMtA752yMQZk71k8mAgRCA60iGjdtUWn2ku0TUWqrn6Ag== X-Received: by 2002:a05:6870:31c2:b0:25d:4f3c:c072 with SMTP id 586e51a60fabf-2701c380feemr213947fac.17.1723742540116; Thu, 15 Aug 2024 10:22:20 -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 46e09a7af769-70ca66297d0sm345327a34.68.2024.08.15.10.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 10:22:19 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] iio: ABI: add missing calibscale attributes Date: Thu, 15 Aug 2024 12:22:12 -0500 Message-ID: <20240815-iio-abi-calib-audit-v1-3-536b2fea8620@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> References: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@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.14.0 Content-Transfer-Encoding: quoted-printable This adds additional calibscale attributes to the ABI documentation for instances found in drivers by searching the code for: BIT(IIO_CHAN_INFO_CALIBSCALE) Signed-off-by: David Lechner --- Documentation/ABI/testing/sysfs-bus-iio | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/te= sting/sysfs-bus-iio index 401e0a595aba..da8096b04e14 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -556,8 +556,15 @@ What: /sys/bus/iio/devices/iio:deviceX/in_altvoltage_= calibscale What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_capacitance_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_both_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_ir_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale @@ -568,6 +575,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_cal= ibscale What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale +What: /sys/bus/iio/devices/iio:deviceX/out_currentY_calibscale +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_calibscale KernelVersion: 2.6.35 Contact: linux-iio@vger.kernel.org Description: --=20 2.43.0 From nobody Mon Feb 9 07:42:57 2026 Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (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 D6FC41BB694 for ; Thu, 15 Aug 2024 17:22:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742543; cv=none; b=JBto++3s42TYJPQH1yS/jHPyd2LwfSoYoWcE5dRiw+boerrZWPeqGsHfhOjJcDmS3TyYgdWzLOzXGch1xyUbCmu2jm2zxT9UPyaGYHBHg2/RlNdzvuUOBFM7KCZsjRkQGEaAyD7UvVHpSFA8Jidsk/88w39hdc8F/zhjezE6/8g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742543; c=relaxed/simple; bh=NqKNlMBKIncrdZaC5SfMefPwGwnTpzNFFps7IhFDvR0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hwSbZNXb1FmIM3gXTM98cNESl0r6yHdCPTeokOxHvLgZglt5g+xcIv59A+BcWRJthQDkbbBlnbLEsdpqw4AuIc/kugMm/4g6gJGb6yq+rT8f3iDAxt+JOsqqrlIh2XA9WPITMr/PFTSgkCIfE0Y0Ex+mF/VFAaOg7WmaUjt8IbM= 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=g+/XpKFB; arc=none smtp.client-ip=209.85.160.41 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="g+/XpKFB" Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-26875ace6cbso563818fac.1 for ; Thu, 15 Aug 2024 10:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1723742541; x=1724347341; 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=ee3sT3/uSk/z9bmUFqgsaKtC1S/E/xH0EqUpDks1E0E=; b=g+/XpKFBheqISNDyLc60IzSGdsQknKRbmh4gv1Eg6Xctfv12M3IDJtEAzK0Yr1ovHS nBBJkVKAjXuULjurUSkMehFOVs9BNUxt13+PeJTpR+ZSMA/DOBVOEixjSTMwM/wOcb8L I5wj/YPFeMo84W5jBMQccxl92GS7hxxyNrtv+SZfwCp3tqWavUgi97qnn+tOi37r/2pO hptrgYGY5RbY0AyZYUApgZge9K6oKRFCX0s1ns5C+vqBA/ZHMYtke93nkNoSFPuwXDSc yT7w+G9MVjMV/3d9So/U6QILZ9/oarsL6TPvyC+SWgKwUDZrY0KdGcYId9d+16Os6e6a 0cxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723742541; x=1724347341; 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=ee3sT3/uSk/z9bmUFqgsaKtC1S/E/xH0EqUpDks1E0E=; b=gtH+i3oRYeKcmPTP//8SamLfmmHrB9gPnRCjj5xe443vmPgu6V48/LXIgKdx77+KDe ShDFVZihNBi8J46otImh3gYAUh0q0i64Ytu7VsNsnJGK2Mwjqus1l3p1lHhlxOcIAWJj cRC5GG8TeG0I+XTaIewNppdsWwCWRKCdvDp64czbHBVTFrPTWYFGEFb4pdWO24W/Xw/z //BlhTwmenkNhYM8bJoiL8rlByryLoarH4HwMOzfH6nHaxo3NvPK/gEN3HLJdRqSUoIs hM/Nf64M/C72B9utzuOxnLEeQ2oglvvaEaoP6/v5GWsJrZgFpBgCKiSCojCEpxLqDs/2 lMBQ== X-Forwarded-Encrypted: i=1; AJvYcCWOJHos/fDGZj63SOGYC6qL79H7qImJKKVKfLzB6JRxkC2ssmHOZ5p5Ens9X31zZ244YoRoHK9xD1Dw8cm0HTy5B/iSZmVHLBKJhqMK X-Gm-Message-State: AOJu0YwagafiFYP+cLtzzojNrBU/hX8/NJf4pHrNkxU1ijXA105Nqm4C JW+N7pzd4Poaq3cROeGwszV9xB8AU9zk/vEOgAjViIbwOzqkyRNYC+9ye8xNDSKnctjNVYM15wS a X-Google-Smtp-Source: AGHT+IF8WH4f1ycbtDoACQ5kxSxRbrCYYTVJnYwbt/UIAQoZGGCtScYr5OI1LKp7AivesPFCF2lJDg== X-Received: by 2002:a05:6871:b2a:b0:260:26a2:68e8 with SMTP id 586e51a60fabf-2701c96f08bmr69838fac.4.1723742540830; Thu, 15 Aug 2024 10:22:20 -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 46e09a7af769-70ca66297d0sm345327a34.68.2024.08.15.10.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 10:22:20 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] iio: ABI: add missing calibbias attributes Date: Thu, 15 Aug 2024 12:22:13 -0500 Message-ID: <20240815-iio-abi-calib-audit-v1-4-536b2fea8620@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> References: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@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.14.0 Content-Transfer-Encoding: quoted-printable There are a number of calibbias and calibbias_available attributes that are being used by various drivers that have not been documented yet. This adds attributes found by searching the code for: BIT(IIO_CHAN_INFO_CALIBSCALE) A couple of not quite alphabetical order attributes were moved while touching this. Signed-off-by: David Lechner --- Documentation/ABI/testing/sysfs-bus-iio | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/te= sting/sysfs-bus-iio index da8096b04e14..345d58535dc9 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -523,13 +523,26 @@ Description: What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_i_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_q_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_capacitance_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibbias -What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias -What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_proximity_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_resistance_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_temp_calibbias +What: /sys/bus/iio/devices/iio:deviceX/out_currentY_calibbias +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_calibbias KernelVersion: 2.6.35 Contact: linux-iio@vger.kernel.org Description: @@ -541,6 +554,9 @@ Description: =20 What: /sys/bus/iio/devices/iio:deviceX/in_accel_calibbias_available What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_calibbias_available +What: /sys/bus/iio/devices/iio:deviceX/in_temp_calibbias_available +What: /sys/bus/iio/devices/iio:deviceX/in_proximity_calibbias_available +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_calibbias_available KernelVersion: 5.8 Contact: linux-iio@vger.kernel.org Description: --=20 2.43.0