From nobody Sun Feb 8 07:14:29 2026 Received: from mail-dl1-f49.google.com (mail-dl1-f49.google.com [74.125.82.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 BC436500962 for ; Sun, 18 Jan 2026 18:20:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768760425; cv=none; b=hBSx5wlks7F/zvH8LalkITo52PvjQj2fqMw+y9GkdfsztQ3X+y/Qc7btA4y85ZIP4F7U94DbC5yXVlfVLCu6FIdMrY4aDJ75Ihh3wLRW+zKVrZzr8oYhlL2b9OIA5OIIZrGTbrWJ2QMR0BpwKe8+o1VQ7P1aKSuq/WJHez7ZkMQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768760425; c=relaxed/simple; bh=Nx2BxfukcgbNMTsAdjO0ux+H8cRidzYXyK9d4V1n0mU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nfrbyiGi8QaZonkPcfhxZT/u8ctvUOabK4WzQxthd3Mw/6feyLloOLEh3Pw+cUUjxG1OxR4DJLMQ51wuDs7GbrIA/Gqoz8dCGjNsRvUyV93BQhyQYex+E5+hoCCJsCPPnXH2h1Bc1Cl8GR2rNXORT0gxCnq4qyTxi80Ubkr7gcM= 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=mg75V1Nx; arc=none smtp.client-ip=74.125.82.49 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="mg75V1Nx" Received: by mail-dl1-f49.google.com with SMTP id a92af1059eb24-1233bc1117fso2312245c88.0 for ; Sun, 18 Jan 2026 10:20:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768760423; x=1769365223; 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=g8oTH4L6k5lmuFdK6+K3XHyFIuZENoBfyf7y0hnUZr4=; b=mg75V1NxXDlUuWprphBTeBFuDW2bFyxMZ7fAS2n59oxEXCtaOQ2SuYbYryua60tUA4 dPAY68iwfVllwItlhe3yNyDRxU4udTT1Kq07rHRn3IRE1+YX6desNQfvrNuM8e4yd0IC jidsbbWpnFIGUyIIfX8PwcHES40hMCtTDtTwEY+Va7ubI7JKggsIgvfovWmMtwzo676b TnC5Gq7m5vOuGt65X4FbLd5LxylHal+j6t0Uo03Xs1ctTPwHp/sHjgoPQ1yJOO4I0Qbh vZie1KIflfPxsDc9sdb3PM6CdFi46rqKkSGG8hgMkQIK5uhmd8/TGPZdaHtsBULPPD93 rVMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768760423; x=1769365223; 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=g8oTH4L6k5lmuFdK6+K3XHyFIuZENoBfyf7y0hnUZr4=; b=QKKdOxrpCNSZ++eE9dod0KJYlLXGnRQ8HgVwWY0Bd4pOKVsodpbh4IPClezBV+DiNu ijhp1eShJYmcoQR4C6SVyR1uX91uynJJNHuMKDVfjD0sDnPdKHnWass0gAzyLtD1Vyt5 VJMQ0Co3dTtNKJ6Ou8eyEsPHAMonHJZM+fV09SvkU7acb5DTDAkD7qS9xBQPTsHisRW7 TxZr02hXS0iSzJJ/ioSApJ/KmAH0zka2nwVfP/jXGZRwCAOFi/EBysUG8Az9VRTgSUg6 WOaLt6o1LA5JzBL8p2q2si6okUp5G/C/JX8n9swUKUCmB/9/R+2wN5TDH2hkQERYIACK xXyQ== X-Forwarded-Encrypted: i=1; AJvYcCUEM98qMp+SVccIK7YW9h9XydtluV0zm0etrzU2CO42cFxHQmRVbzlmxIPpieoRywh5gRS10YOG238sa3E=@vger.kernel.org X-Gm-Message-State: AOJu0YyjU03PQHz0ux7XBI892FGgR6G++pvrVLBi96UdAHBgaW5XqGNa JxUfYADCnzcrbfnehjrXZx+60WRhOQSwKaMkQShjzdDlJ1I2q3X+4egi X-Gm-Gg: AY/fxX67qfD80gfbkAITaEct/uIr7f6P2k4BTAnmo/fh5DJdyEUOoNXZvM6kVxeWgrW cDQtXWjrJvAQsYBMWhYKtrMs74G8tLGExLdGUmK6GGjf2DAMsicBtg/OmuVNkjVWELgGruC+wxF W70JW5Bzw7jUYMFwAvV3fvveWqGXI/CMiwpXknDK5JG5Uqf5UxDO5nZZP01KXEmxKHhV3zi/Lyg a9xsIG0UjqQNj8IjxcAnRpzIQJEcXlYRQO3SpdAeDlbOHRtY47cAL0NOJ8mFPPx997ekXISMBXu EZASnqOnqfkwCXed8+JEdzzPj4m9AEZjS3LyQktoYXK03LgB/ngcAcCONGk6+Rg8S0mOKToanOh KvtjpI6EN9UjGbVSsdfF0r4C0N/+9W0FXZcVtOv9nOKfs7g6vxPezFp1O7zvscoR/OwD735+yUu M2Rn22Hf6ajip6jdiPXlo= X-Received: by 2002:a05:7022:e98d:b0:11b:3eb7:f9d7 with SMTP id a92af1059eb24-1233d0adc11mr10868872c88.14.1768760422721; Sun, 18 Jan 2026 10:20:22 -0800 (PST) Received: from localhost ([2804:30c:2766:a500:b70:8c42:f792:bef6]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1244ac6c2besm12775573c88.5.2026.01.18.10.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jan 2026 10:20:19 -0800 (PST) Date: Sun, 18 Jan 2026 15:22:07 -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 8/9] iio: dummy: iio_simple_dummy: Update to event unit expanded interface Message-ID: <40da257176192dce3b271c45b6ce7dcaa15b06af.1768759292.git.marcelo.schmitt1@gmail.com> 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" The IIO events interface has been expanded with an additional parameter, enabling drivers to handle values in real-world units for IIO event configuration. Update to the expanded IIO event interface. Signed-off-by: Marcelo Schmitt --- drivers/iio/dummy/iio_simple_dummy.h | 6 ++++-- drivers/iio/dummy/iio_simple_dummy_events.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/iio/dummy/iio_simple_dummy.h b/drivers/iio/dummy/iio_s= imple_dummy.h index 8246f25dbad0..a1132781c0bc 100644 --- a/drivers/iio/dummy/iio_simple_dummy.h +++ b/drivers/iio/dummy/iio_simple_dummy.h @@ -66,14 +66,16 @@ int iio_simple_dummy_read_event_value(struct iio_dev *i= ndio_dev, const struct iio_chan_spec *chan, enum iio_event_type type, enum iio_event_direction dir, - enum iio_event_info info, int *val, + enum iio_event_info info, + enum iio_event_unit unit, int *val, int *val2); =20 int iio_simple_dummy_write_event_value(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, enum iio_event_type type, enum iio_event_direction dir, - enum iio_event_info info, int val, + enum iio_event_info info, + enum iio_event_unit unit, int val, int val2); =20 int iio_simple_dummy_events_register(struct iio_dev *indio_dev); diff --git a/drivers/iio/dummy/iio_simple_dummy_events.c b/drivers/iio/dumm= y/iio_simple_dummy_events.c index b51ec21b6309..9dfccc6439d4 100644 --- a/drivers/iio/dummy/iio_simple_dummy_events.c +++ b/drivers/iio/dummy/iio_simple_dummy_events.c @@ -120,6 +120,7 @@ int iio_simple_dummy_read_event_value(struct iio_dev *i= ndio_dev, enum iio_event_type type, enum iio_event_direction dir, enum iio_event_info info, + enum iio_event_unit unit, int *val, int *val2) { struct iio_dummy_state *st =3D iio_priv(indio_dev); @@ -144,6 +145,7 @@ int iio_simple_dummy_write_event_value(struct iio_dev *= indio_dev, enum iio_event_type type, enum iio_event_direction dir, enum iio_event_info info, + enum iio_event_unit unit, int val, int val2) { struct iio_dummy_state *st =3D iio_priv(indio_dev); --=20 2.51.0