From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 78DF92877D8 for ; Sun, 8 Feb 2026 15:05:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770563130; cv=none; b=CoClFw1Ub/9rN9WQbQdakE324I6aeJOC9YRjVIg8QJezy1Rm41sx841j8Mz6gDDfsB+WkQZTwEincZkm1Hq9z3S2Qg1b2P9cOd9FizhnJqww0hQdK5kvPnTZPQPV4MOFyCQJclxUdBPtyrBGsnH9FOOoiv1cHzId0nJicXmbVTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770563130; c=relaxed/simple; bh=REzYKaXLBwoE4Plvf1gN5k8tJVJVi4O8VE71Wbri9PQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KXQN7yaDohtdI8jtFJjUwrm5qR7lilIKdFDhgsWLziYKSXDF8wicKU4ffnnno8qbR/VoyxdeF4Jrjgd5QXAzsGFHWP5oOUf8lns0wQhBQYSN90YiHYInIQo4jbDv0Cnvm+bJOSJtdPZ5/AdofLVYMULfv21w5r+uvjWJ3l4FOSI= 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=jV3k0c6h; arc=none smtp.client-ip=209.85.128.45 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="jV3k0c6h" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-47fedb7c68dso38763785e9.2 for ; Sun, 08 Feb 2026 07:05:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770563129; x=1771167929; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cHsiJILP6hpkRCgoXucesB1BnAyegGp+ZNei85NfukE=; b=jV3k0c6hIdiomZ/9bmD7NuxV1AkHhjvI1PGSbWbRHpn3gkTIZFqF+TC3ItYVsNP3VO F9Y85VdAbweKOPvWMlV9KdUr9PkmxMXdXsXlmz1jUapb6OnIsU18mHJxVu+9I2N6qoz7 iAsPmiLhYWhO4KVDknjmCwbCgp5EVVL9Nv2hKYGs+2T1HMqNv8fyPPj+/IsvLgecptxH gQCoEjNWq5d80EwcMqVV9j8f4b7ysiAWCtDcWwiPoqDJgs//f9sMdW6Hb3Pa8/fCUIYo 9W2+2RrcttqgmF0oVEkCbtqDERGZm8DHF4HXTUKpnXgIp+Xdfz6UwpTV76RRRyHZJlMP uhVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770563129; x=1771167929; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cHsiJILP6hpkRCgoXucesB1BnAyegGp+ZNei85NfukE=; b=RuDYJ7+VBls1OkZuomfSybPQUNiWLSOFPRsP7LApiJTM53eUmLOr6qjuw6XELnXH2u H4kryeCxSuUR3sihU9ar+9GYP2woQx7w0yR7SVhxGkZL67wL6xsV3mGAEdlKOmJEyXI5 SQtCZR6JhMbOf3hi9u4iJSMt3P2wqYS5H/DcYzEiAi2yk57lIZZUW5G+XFKoqb5+ie/W 8cOKPUJnATjFc9ccSTzkbscv5tPAhdzZCWDkh3OlQ0VdP4i34LbOdmARPy5xABrLtQ/y oEvaRQDUw63BAUhw9RW9b296sWVibXtrkp1e49zMeqfl6jxsmLm+ZPPQqc+CpsK9Yx+m T66g== X-Forwarded-Encrypted: i=1; AJvYcCUtkCKpkNLtu1leNd1d/RcZHJ2xWh+HzlV1g8Hgzc/rSzkkHGB5k1lEA1gNQJM6lp6EHJZZjAMxbAQdsZY=@vger.kernel.org X-Gm-Message-State: AOJu0YxZ5ek2j7YUi1SPN2N+RJkUq4K62LT60ZNwtTpugZ3NurKyW6KJ DM5mcaoch6U3NC7RCakGbNsaY61aBV4yHnX7n0I14asanLmUOS26m0TT X-Gm-Gg: AZuq6aLyBDfJqO6lJkddHEEOndsdFlsCQPS1T0L8c0xMZ9utagIJUNgYYcdA/9Tm30U mC0l3w6aST040tKuenvh1RfUz5CZHaSwsDPu2W/HRBTDKAkE0VTAE0QMRrDOmlH0kIFkc4qiuy8 kEqTDKkScDA3hlj+60UDPBGaaaBIC2iGZ9kc4B1dYIFIisNzOLe+HVrZ+NefDn6y/BioTyBPNNo Fq5uJjc1LUm7eebf0dAxhyXiCbx9HX2LOIlFOvnyz3+ftnOLOui8am4SeReFWPzVfCldp6zw6So CMfdQrDXwaPKfa2F/XhNvk8emr8km6pyrsZgQomPtC3hy4fA0QT4BDv7UhWWMsU8zzXppCDjQC+ 1BL7RTOCcvm3bazV7uqqCDOT3K/0fcpU/43FxM0lD7d4IAVZzugnhT8TxPFhi0W/PRLKMwJ3FXD zUAAZK8xE/N4pDIaHMfMvshXKemjWIJRVoWnmKCQJYpRfxByQixA== X-Received: by 2002:a05:600c:4f4d:b0:47f:f952:d207 with SMTP id 5b1f17b1804b1-4832096698bmr114979165e9.19.1770563128638; Sun, 08 Feb 2026 07:05:28 -0800 (PST) Received: from DB-VM.1337.ma ([197.230.240.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483206cc7d3sm179326255e9.5.2026.02.08.07.05.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Feb 2026 07:05:27 -0800 (PST) From: Taha Ed-Dafili <0rayn.dev@gmail.com> To: jic23@kernel.org Cc: dlechner@baylibre.com, rdunlap@infradead.org, skhan@linuxfoundation.org, linux-kernel-mentees-archive@lists.linuxfoundation.org, nuno.sa@analog.com, andy@kernel.org, corbet@lwn.net, lars@metafoo.de, Michael.Hennerich@analog.com, linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Taha Ed-Dafili <0rayn.dev@gmail.com> Subject: [PATCH v3 0/4] iio: accel: adxl345: Add event scaling and doc fixes Date: Sun, 8 Feb 2026 10:05:01 -0500 Message-ID: <20260208150515.14798-1-0rayn.dev@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series addresses ADXL345 driver non-compliance with the IIO ABI for event thresholds. Currently, the driver exposes raw values for thresholds (e.g., tap, activity) without providing the necessary scale factor to convert them to SI units (m/s^2), as mandated by the ABI. This series implements `IIO_EV_INFO_SCALE` in the IIO core and applies it to the ADXL345 driver, ensuring that userspace can correctly interpret threshold values. It also cleans up existing documentation errors and typos. Changes in v3: - Patch 1: Reverted "axis" -> "axes" change in documentation as it is used as an adjective (Randy Dunlap). - Patch 2: Reworded commit message to "Implement support for..." instead of "missing from..." (David Lechner). - Patch 4: Simplified documentation table by removing repetitive scale values from every row. Added explicit table entries for the new `in_accel_gesture_scale` and `in_accel_mag_scale` attributes instead (Jonathan Cameron). - Patch 4: Fixed "inscale" typo in commit message. Changes in v2: - Added core infrastructure for IIO_EV_INFO_SCALE. - Implemented event scaling (0.612915 m/s^2) for ADXL345. - Fixed technical math/decimal errors in existing documentation. - Cleaned up grammar and pluralization issues in .rst file. Taha Ed-Dafili (4): docs: iio: adxl345: fix typos and grammar iio: core: Add IIO_EV_INFO_SCALE to event info iio: accel: adxl345: Implement event scaling for ABI compliance docs: iio: adxl345: update math and examples for scaling Documentation/iio/adxl345.rst | 65 +++++++++++++++++++------------- drivers/iio/accel/adxl345_core.c | 28 +++++++++++--- drivers/iio/industrialio-event.c | 1 + include/linux/iio/types.h | 1 + 4 files changed, 63 insertions(+), 32 deletions(-) -- 2.47.3