From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.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 104BF346AE5 for ; Wed, 21 Jan 2026 09:32:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768987956; cv=none; b=rtNyjiY+wRKYYgI13qIOHq/qYo3is5zqETp/Jiv/r7kbdLYNgYe33XxNzLB54eC+RQrYkrtjUFVOycYHTfXDRe2tLzNfd3ZOjHHMSyCggyObK+604yIg8qMqOeqCQrNvpSJgfoMegWpjCaVxHTqtsROztCJodMMFP84pwH73CCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768987956; c=relaxed/simple; bh=9Z3GJR+oR4iElQBYLEJPW3P34rRlaSYDMSuwJ/wBKr0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=EUC0Bwiom7BQ3T1SDyapi7X4C5VQi11WqQln+UzVsOTelNNYSfLAwMa6JYe/JoTpFfiX6A0QCBhuoMcXpv56aogJzH/VMzhxoz3v4wiRPmh+blVMJsDkuSPvnkkVrSpEntypH7/OJjRoW0Yu/fmPkd5g4wb+ZWOIGqHWiNs/5ck= 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=mQYH/STp; arc=none smtp.client-ip=209.85.221.41 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="mQYH/STp" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-4327790c4e9so3824973f8f.2 for ; Wed, 21 Jan 2026 01:32:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768987953; x=1769592753; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=y6R7V3ZWTA9/RaVBxdw376Kf2ZDaVjKcJaNX1RQPxK4=; b=mQYH/STpTLYYTga+Vrlcwb5CSScvlmZutNonEZCUhpFwDYcpwt+9AFHzGcdKzSh02W QtqSP4M2cRRJ57NRA/rmcnBVj0exQTqR7iVwcuU0RoNAluC3r3Hy2HUKRGVSCV+nQ7Ku xQJ/IbyemhI3KcHVHWj+M9ONv3KXcsB+cc1JQc1hSjh2SflALszZ8ZjetuKX+8TLmrrB BB1+01s8EE28BvhgyZ7RhpiT4NfMk6XpX1dJCwspNPmrMlVWl01VMY4O4aKRP6TcvSW+ 13qanAjKsI9P5NwIz9yG+ZAwMUg978s0uejnNKb2fA/Vt9vm2wB7iQcUDv5bJ1auSexl Pxjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768987953; x=1769592753; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=y6R7V3ZWTA9/RaVBxdw376Kf2ZDaVjKcJaNX1RQPxK4=; b=BMyKXSP4T9uTunrJ1T2IvMt09EW+28BzKmeQ2o/Kra4eLCkpTdfPoOktFuqE+Lm/MV aKqq1eVTOvI0ZmvkmOpInC3i8lQ2bxO6p2k5EJVrmFTmqSLduzPttalMWXsla2njWyT+ CQ8BBc1YQxvgh3sU6yPaIjvgo+nuCqvHywnQMB442oAiN41XxXEFvH6LlJ9eUDfi6Ih5 j83T6m848KwCWnDCtTw3Y4X5g6HfocqWhZFH7VETnF5M9o+3Xf7KGk2L2yj5JZhVcvwm VmU7mPWz/9h3qffMgMwfnvFRMjKV9cnPrC9cn3FK/ogJ7A2wQLoCF06IxHtedom+gSsr 4Grw== X-Forwarded-Encrypted: i=1; AJvYcCU+h3EmyWEsgKbZdcUMMoTyYE3zloXMGux6Y4Y+2v7a9QlAyHQm2pXyqKTW1rBe+y3hqTMY8wnMoatIU5Q=@vger.kernel.org X-Gm-Message-State: AOJu0YwnjVm8s6p4b+hxANVAaVKxkP6Jlvm6N48L9D7oUHvIopl7UpHw E0D/D5fbLVQXGdUKfZECQGSpC7u/wkTLwsE/JjA5PAjS8aLlzkU3R4Wj X-Gm-Gg: AZuq6aKl6m+EYExNRcPGOl0tda+TtEu+Xz2hm/hecCHGL8geuSL0Vkdi/bpIaaQrNr9 frDJN0SN6PpCUcerqRchPU5W1ae0ugUYt/d4ArxX1d3AQCUUesxZ/U2IOmTSS1OsrxlQpzeTFDL zibnn5d3Xn6ZcA1bw0/maBP2LD3iiwqkFWlnAyriBIgGoduUwgrpmEF7qkr6AbRHaY5owDZ6BGr qv+uXxWvLTFm8ls3ACwQCegWLvaeZ7TINTF17zFGrcMzpu3vB2qYLEdJ80fPR4t0EHYztaTOKS5 +e3Szfe7QAQdy1R0wHBUE55H/oBuh5bfZrpWjPxzzCFx6Y9RO3KM5igXM+fm9q2wUj/AUVLRWG7 ed5f9zQ2l2bFsVVVkz3VQ/5N9pX4d4TFh+krhhe2pgh1fbTJWUDiuXExHqTmpFZqRJwEDeyCaI6 wJLqezGwwv5s6WLcEf7nE= X-Received: by 2002:a05:600c:35c2:b0:480:3b26:82cc with SMTP id 5b1f17b1804b1-4803b2683c0mr108208865e9.18.1768987953048; Wed, 21 Jan 2026 01:32:33 -0800 (PST) Received: from [192.168.1.187] ([148.63.225.166]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4801e8d90b3sm304721065e9.15.2026.01.21.01.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jan 2026 01:32:32 -0800 (PST) Message-ID: <2f9e7172885c5dd20be198f013283c6ec0513ef1.camel@gmail.com> Subject: Re: [RFC PATCH v1 0/9] iio: Expand IIO event interface for real-world unit handling From: Nuno =?ISO-8859-1?Q?S=E1?= To: David Lechner , Marcelo Schmitt , 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 Date: Wed, 21 Jan 2026 09:33:16 +0000 In-Reply-To: <4a04fa3f-c056-4443-a55a-e8622feb1c2a@baylibre.com> References: <4a04fa3f-c056-4443-a55a-e8622feb1c2a@baylibre.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sun, 2026-01-18 at 14:33 -0600, David Lechner wrote: > On 1/18/26 12:18 PM, Marcelo Schmitt wrote: > > This patch set adjusts and complements the IIO event ABI docs making th= em > > coherent with the fact that not all threshold value attributes had a _r= aw/_input > > indicator set in their names. In addition that, the latter patches on t= his > > series update the IIO event infrastructure to actually enable drivers t= o provide > > _input threshold value attributes. >=20 ...=20 >=20 > Just throwing out an idea here without thinking about it too much... >=20 > Instead of adding a new field/parameter for units, could we extend > enum iio_event_info to add IIO_EV_INFO_VALUE_RAW and IIO_EV_INFO_VALUE_IN= PUT > (and same for HYSTERESIS). Really, the units only make sense for these > two info types anyway. >=20 Makes sense to me. Or we can just document that the old value is _INPUT? O= r just make it the same value in the enum. - Nuno S=C3=A1