From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 5CA153563CD for ; Fri, 17 Apr 2026 12:49:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776430173; cv=none; b=Dnf1qM3N/IrUAmlwG4C69sEsYi7TmhwLbWJ4Bmvc1d+xi4oj3m/u4tLgBCEn8m4neTLCex5DU2B6FcmX15CQBS/DpTLZiJDVsCJE9SiuLGDA4jduH43JVIowkzCcGd8D1aDWCcHgX1xEjJSRv1mcH1Ac74Xh32TN9qQ7qQ8qzeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776430173; c=relaxed/simple; bh=UVALwF+PWurhclFx5Hd8PYiCfGgZkb0in3Jy0eY3yhY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LLZzdcLM0ZWZadQJVV5qoqVK7IG8WN2ceT5hcYvojC+L9JyLGFnj7VMiTypIfToqA/EE6yfKcLnM06vCbVmeOvZQQL4J/4wdrMP6p0B107YfimGL74ZzxcfTK9/9es4WlkzzKNSWo56BQkjsXgx1lh/w9WT/ht++xjkt9MxvtkE= 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=E7zCCsX1; arc=none smtp.client-ip=209.85.214.169 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="E7zCCsX1" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2ab46931cf1so12991385ad.0 for ; Fri, 17 Apr 2026 05:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776430172; x=1777034972; 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=mCOf8DQWmwYIT9cyGd4okBAij51QTtyTXuHIeY8p7n4=; b=E7zCCsX1M3m2GxLWDjteh1fnesQAwL7aDkdlZVQ694yYXV7KirAmJ9YbH4VsBXEmx9 qdHSLAPEjNAoeuY6ZjQp/4pGTXcH+N4ibTe7liFWR09ABaeNSJvMf1xc767dllwdEagf VVgZtzguN17WKWBHzdwFaJ2yMv2FUsxZB0UZi+uMd2CrGXxo43izqc6s4q8eK2LbNfz5 xljGBmTkqmu/LJThGzS42bHdbE0o95mwGm5YW/rsSAhI7IN1aIPjPalBqpF2RCnY+/Dd n2Q9dRcerO4XbV4vVR6//jkaX9QEDU3mhp0i+MXVXqNYxEsjs4XGu5YRfQTnz8YW/Zju VjfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776430172; x=1777034972; 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=mCOf8DQWmwYIT9cyGd4okBAij51QTtyTXuHIeY8p7n4=; b=EuQ7pX3To7CKIOvIcTKkwkLVqsuca5fSk5fSoRJwrg/XuLkH22HTh8n/84u3CXXToA xt3PJqxXvRB18zoZqDP2NqePZsOzkfS5v0tFAsxM31zSVaXba7pGHErtzLJIYSzRV9EU XfChn+GORt+bTEgYhWVGtTALPVJamEP84bXwbzwx55PbgeQGMB/x3t28Qgg0JN02r2/M /4pHIy7cl0tosa1ixS8p1j0w253U2TftdzI5FLBAT83YzkTPJ75tCPmds4S5GHWf+mJT p5+8l8f5s8W9u8Sdg/eWB3iYdZC+cNbf7uhASTlHwSSQhUcSXOYpQXTW8TXRS8dLrcPe DUGA== X-Forwarded-Encrypted: i=1; AFNElJ9Z3j+kRtx5LYloMOwGvKjC0Lys2GN06ZlQ4/fVyMYa3G2gMUsbDrL2Nd78W1oKwD+tA4kwndy3g003N2c=@vger.kernel.org X-Gm-Message-State: AOJu0YzrJrXIG8qc5lK/FFqugD0sLgqIwGE4o3rTLPU6ctM0+w7wBIAo dIRBpg4JFalrQba0afgjh3e+T3yPRveMuP7elibB0g4KraimH2ctT4cl X-Gm-Gg: AeBDiesZ3YHirsdk2g/GV5qtwpsPZKBhe5nGpdNF5Qy6ptK7UGOqaWvGB7xlHLneC9g WJVTR2namyfneA2nh3f4dOb/c/ZKK2QHuAah7FUn9yfWW5HvzcGgefil13NREiadlAk+dE3wohZ u/dwP7yf0vXjpy3f9aFwlfa2NW7D5k/vOi32QDCAMRWMUIxtIksLs4oL2wXYXjoHlM0cDWcI+9y qd1/Jknc0B3dq9i1kXhHkYMDwg5lyv3OzVVFPx1Ae/hFZOvz4GEl7PMB4eMCohMQESd5t2wAZr7 jE2uhRh8CbNJQogTj4Pb2yz2+CT1bthe820tKkDWw/kjg5lKYqH+SNznKwoPdiv+49zxzjug2pD XioBL8dMBbq/biR3RQPM5V1XtlLVFXhg2JzqYPMISuMrpYFvrunO8evEKWS8hvqMzvb296Hlafh 8TV3jyCLMUfTv30qxko9TNaRuuoMCJzUSQMT6iYwRL4ci+ww+X3ARWOucxlUg= X-Received: by 2002:a17:903:1aac:b0:2b2:54db:3e93 with SMTP id d9443c01a7336-2b5f9ecb056mr22323885ad.23.1776430171529; Fri, 17 Apr 2026 05:49:31 -0700 (PDT) Received: from hu-ckantibh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fab0cb92sm19428855ad.50.2026.04.17.05.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2026 05:49:30 -0700 (PDT) From: Sanjay Chitroda X-Google-Original-From: Sanjay Chitroda To: lucas.p.stankus@gmail.com, lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, puranjay@kernel.org, cosmin.tanislav@analog.com, marcelo.schmitt@analog.com, antoniu.miclaus@analog.com, ramona.gradinariu@analog.com Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] iio: accel: small cleanups and error-handling improvements Date: Fri, 17 Apr 2026 18:19:16 +0530 Message-Id: <20260417124924.353189-1-sanjayembedded@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Sanjay Chitroda Hi all, This series contains a few small cleanups and robustness improvements to adxl313, adxl380, adxl355, adxl367 and adxl372 IIO accelerometer drivers. The changes modernize mutex handling using devm-managed helpers. In addition, error handling during probe is cleaned up by switching to dev_err_probe() to better handle deferred probing. Changes in v2: - Drop guard() changes as it's already available in iio/testing. - Rebase changes on top of iio/testing with guidance from Andy. - Added new change for additional iio accel drivers. No functional changes are intended. Testing: - Compiled with W=1 - Build-tested on QEMU x86_64 Thanks, Sanjay Chitroda Sanjay Chitroda (8): iio: accel: adxl313_core: Use devm-managed mutex initialization iio: accel: adxl313: Use dev_err_probe iio: accel: adxl380: Use devm-managed mutex initialization iio: accel: adxl355_core: Use devm-managed mutex initialization iio: accel: adxl355: Use dev_err_probe iio: accel: adxl367: Use devm-managed mutex initialization iio: accel: adxl372: Use devm-managed mutex initialization iio: accel: adxl372: Use dev_err_probe drivers/iio/accel/adxl313_core.c | 10 +++++----- drivers/iio/accel/adxl313_i2c.c | 10 ++++------ drivers/iio/accel/adxl313_spi.c | 10 ++++------ drivers/iio/accel/adxl355_core.c | 28 +++++++++++----------------- drivers/iio/accel/adxl355_i2c.c | 11 ++++------- drivers/iio/accel/adxl355_spi.c | 11 ++++------- drivers/iio/accel/adxl367.c | 4 +++- drivers/iio/accel/adxl372.c | 10 +++++----- drivers/iio/accel/adxl380.c | 4 +++- 9 files changed, 43 insertions(+), 55 deletions(-) base-commit: 0ccdcdc698b7ba52f2c9bc09bfdf9f020ca0e6e6 -- 2.34.1