From nobody Sun Feb 8 22:08:30 2026 Received: from mail-dl1-f42.google.com (mail-dl1-f42.google.com [74.125.82.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 14CE5500962 for ; Sun, 18 Jan 2026 18:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768760295; cv=none; b=nsJ4nomVD33NNSEwx3+aRcpZo/L3XQXbDPbdG/cYSCGc+XoJNcBzrGpVlkCRlEtBYZawjKz/S7pjYWMeE/WLgBSMhgpUMBBL1CGThq4oucGkRmHatAMvSbejPNfPF2kcV0f6dzMuuojpHoP52v0UplqFck8WSs5H+E6RQ52WY2s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768760295; c=relaxed/simple; bh=iyexZ1uaucSt1ZtG4+j8aM5C10e50O+oa0HN12eFl4E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=azI0SfWQOESX65yvTvmekyq/lb5IJVzpGh5CmeIj2jLobRtY8HcZjsxMIg0Jlwck5AeCSjevm+YuNfnFwaFPp+5W10M1fvmoe1SAKj6MszWLSU2Monekqa8DmGVwciRrs8wrNwMNi8w25UPUdvfqf6fnl79nKEK/S1tUKNIKamU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SW58QOHT; arc=none smtp.client-ip=74.125.82.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SW58QOHT" Received: by mail-dl1-f42.google.com with SMTP id a92af1059eb24-1233b953bebso2071432c88.1 for ; Sun, 18 Jan 2026 10:18:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768760293; x=1769365093; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=61kCkgh29ac2ojrati3gqed3KfIfkHkJTk1NnGw8x7w=; b=SW58QOHTjo+lfSi4QdWo0qa+d40Kb5L9dO+chg0lTjBFOPuZGqbBBIt1u1PaNwaLs3 vuiJAiKjrL1W1XKtKpR7uH6T9rIP2WwBCZJ/z1wzwjk/rXoYAe1n0VFEcYXadtLeqqXI cyqifk/vXlt8UdirPJM5KuvhmoHrlat6IZM/fkuVfeeLpJKjn4+WKibvLkaj3Ue8DQne 8dLIEVf1IndAdDLRT/z45NFYaWGrlmjuy7H74qWgyZJ2uT9k7CLe7yXcZajyjfME2xAE aGZkdUdBatfMLpTIwVrn8EsTNN+My0HZJt3Ocu0m/MRzFykf2EIwIoFOylBpOCfCM467 X39Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768760293; x=1769365093; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=61kCkgh29ac2ojrati3gqed3KfIfkHkJTk1NnGw8x7w=; b=nEnfNKYsMwrUpG3SEdpItfOToTznTtY5Xl6iHMQ4TjFzw09w5Nc1hZH7W6mo+uo5nl 4dwsnmFzFck/4eizxcm9iokwrHxa8NesY8jjQ7nI4ttSE9ll1/9ONcaco64yO+5dPUPp sn/8EGV8+rLp6p66s6daamsw/hy/orxSGGZVXlc7leJVId2aaKE7aRvpMO7qPuPZFyAg xK55oLadg/kYJHXN+Xnt7uvjl2ZqW5y/WEl9YoCAABW6ymDni4tv6YYfca8LkEnuy3En 9TQ9/K6TSCjc6AOlH1OSfPpOf95oNlzRASdfkkul10tId3HA4Ln/FqPCo00RevcShKoF n90Q== X-Forwarded-Encrypted: i=1; AJvYcCVH4g4j/GRRq7fvd/T7I+Jl/BzdKqPPr2hgRX6us38CdDgezFAOCSTcX/7nPGKKmMN3HQjuAyomqwUHWjk=@vger.kernel.org X-Gm-Message-State: AOJu0YzrcA/ajGaAYhy9kqyM3wE3hQUkhGUkGRZIuK9aUXd1pnveeYUM Gm1ftcjmYHJWjvH0d3XNcmYhX6ScTrXfHvfMvVDKH5OTIedTxjQQfYl9 X-Gm-Gg: AY/fxX47rUXNg30b2rs8WnP3+d8XB6DbnvVIo5/OW/ZS4CNc/N+QhF1L4MQzg4Aap9R IziFH/DDymmNsjQRRyivuY6Uqa1tNkZRjRnouxme8efFKzTJhcshc+dVzGvcZJ05QomhXrAOz4B DvQNk850fbSKTv/fB3f2HQwYtAW1y8EDii3v2SwYdf53mJFuQa0r8lM367kCQTg2PxROrpnn9Ac 1y4qgzA/B8MJwqTVxJj79bcUt+Uq2LZw01OKQCRIlKbP5M6nlDBw0kaYaZ0G2W+c9ItcHGmP/wy nUwb4F5AeDXtWMIpW57nabcc5zSNYxqgz92KlDoavK+n1VeEyOTx2xgGmL8iX0lnU/Inhmyfaxb 3/90Fl4WZUYFc7VGisx+yP8x7o50nUAc00AIcGM1qaHLwvkbum5UnOFpN4Bw+OnvUuweBRDr+Ms Pm7V4OozwV290b7eVpCbApmIm7bttdfQ== X-Received: by 2002:a05:7300:fd18:b0:2b0:542a:227d with SMTP id 5a478bee46e88-2b6b3f21d9cmr9357578eec.2.1768760292896; Sun, 18 Jan 2026 10:18:12 -0800 (PST) Received: from localhost ([2804:30c:2766:a500:b70:8c42:f792:bef6]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b6b3651f39sm10000367eec.24.2026.01.18.10.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jan 2026 10:18:12 -0800 (PST) Date: Sun, 18 Jan 2026 15:20:03 -0300 From: Marcelo Schmitt To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jic23@kernel.org, Jonathan.Cameron@huawei.com, nuno.sa@analog.com, andy@kernel.org, dlechner@baylibre.com, marcelo.schmitt1@gmail.com Subject: [RFC PATCH v1 2/9] iio: ABI: Accurately describe in_distance_input Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There is only one driver (drivers/iio/accel/mma9553.c) that declares a channel of type IIO_DISTANCE with an info_mask containing IIO_CHAN_INFO_PROCESSED. Though, mma9553.c provides distance in meters (as would be expected for the _input interface). Split in_distance_raw and in_distance_input ABI documentation to provide accurate description for the in_distance_input interface. Fixes: 7cf78db585b1 ("iio: Add ABI documentation for illuminance raw and sc= ale values in light") Signed-off-by: Marcelo Schmitt --- Added a fix tag though not sure it's needed/desired since it might not be w= orth to backport documentation? Documentation/ABI/testing/sysfs-bus-iio | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/te= sting/sysfs-bus-iio index aec39b8e3345..27251b65ea0e 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -1613,6 +1613,13 @@ Description: user). Units after application of scale are Joules. =20 What: /sys/.../iio:deviceX/in_distance_input +KernelVersion: 4.0 +Contact: linux-iio@vger.kernel.org +Description: + This attribute is used to read the measured distance (in meters) + to an object or the distance covered by the user since the last + reboot while activated. + What: /sys/.../iio:deviceX/in_distance_raw KernelVersion: 4.0 Contact: linux-iio@vger.kernel.org --=20 2.51.0