From nobody Wed Nov 27 12:33:12 2024 Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (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 61AAB1885BF for ; Wed, 9 Oct 2024 21:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728509186; cv=none; b=nhh1qGbKZZYTxxJ1RhLGOa1APzzX6OpFkRJ4OJbuDi1pNb/9G/Su1VhYrEI1XfDLk5JauybiM8GyrRRRgGBl76PjcVEbMQkWH93bMykJJW1NuVSSCOad/8vE3LZ4bqhF8W6K5m0McdIiJyXGlVyW82gLl6+dQQ+M2RT7s2xZ5rw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728509186; c=relaxed/simple; bh=VpUot3Wk/hqPADAj63BdpEHXJlxUTjKifypWaSWAA+E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Ujib951W97WIKvpIwR4ELCnNtsjfJ+hBJ8PJqLRpMVNSMevsuTD197fZVwX2CphVVPjZwNcB6yx2CECprbDtctkUmNqZFcDzyaWFy1RrMm53Oyteynq1uRWUw9zyFvTxPGBMIl+pKxRP08YmoMChVmPuuJcjjw/xggnUu7QzdIg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=pkjP7rqp; arc=none smtp.client-ip=209.85.210.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="pkjP7rqp" Received: by mail-ot1-f48.google.com with SMTP id 46e09a7af769-711009878ccso179651a34.2 for ; Wed, 09 Oct 2024 14:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1728509183; x=1729113983; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=CKLu7KQ+mELVme63gzTjH18/L5l4LMgl1DhfRI52KK4=; b=pkjP7rqpfi6gY0nYV/D40XBzolXQhPGxHsjSFN3EkbsKLfiNYHcMUiCvvpTnlVn4KE Q8qkG+6KpIf0rBBFKv+46lM5O3s0nwtrQ4/lBBwedjHKwNMDVPNCrIMR85dwh0XJUEGv 35HLFtHHfyJYU3ppARyWFk/ooLibwzqnqIRX1qi9E2xCQZY1ZsxXa5Z+Oe0LdyG5P7cp +hSC8TMJ88S2dbgXrUsMeBDczES2t8zZuttgStBuzLEBfXk8wdqroaWxhMr9NChDa/4+ TzulQjZzZ8QiesDWIYikXn8OchUIyOI2XQEYEmlzjuI1Stdb7YbTO7GGohSUzEXDVoDi VV1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728509183; x=1729113983; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CKLu7KQ+mELVme63gzTjH18/L5l4LMgl1DhfRI52KK4=; b=L2Bgcq/SNYpNf8ntDE1hJTuUsed8jM603MsCunFVJ+lfSsg3E8cSRfewh8uZ8bZIVd wj5tHoo1lwRRak1rZIku9k20N1WmfhhPbKMp956ovEPlHErjU08W8vcUosjXwylVSWtN UXL5ghSvZm2WOOtgCB7sEd/+K2/YYtJhYzJwZ0TEoNu0FzWyBGWEqQzFcTcbm/U62xzG 7v/sdicNixcv/PLJuAli1Y0vRkO7umQ2oMCDkRnA+lEgNCp5Gk0pP7n0XKX6UJuYg7do 55U3QOfZFEirnK0wzGogFVYqFzSFPqelVvsU+FTCtzLtIss+roRdKr9hwkifRPq0Bu89 BuYw== X-Forwarded-Encrypted: i=1; AJvYcCXLRq0EVB8aXol0x1FIIy9zsS+UMPRbpPce3Oz/AALp8mPhqqJIUrnm2tMtEynLW8jJIXKQnryRbF8yPWk=@vger.kernel.org X-Gm-Message-State: AOJu0Yz9dXWQbnUazFsF+ijHCutmCXUL0KZ3a3TbeX00qTnHpPpnCYZA jqpOnwAfST+TKRHLoivzUnCqj+XaZeQkyl7uSv3A/9BZc9KxJt57IW/4dnQVmW4= X-Google-Smtp-Source: AGHT+IHMGMW0vdYe4sQWwrO/xco4iIv+k6FsLUVoGcEY54rAXRy6QG9OZ6Zw9yBcr1oLrjyyCOLhIw== X-Received: by 2002:a05:6871:586:b0:277:eb15:5c60 with SMTP id 586e51a60fabf-2883425ad33mr3145988fac.10.1728509183473; Wed, 09 Oct 2024 14:26:23 -0700 (PDT) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-287d706756fsm3696399fac.9.2024.10.09.14.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 14:26:22 -0700 (PDT) From: David Lechner Date: Wed, 09 Oct 2024 16:26:21 -0500 Subject: [PATCH] iio: adc: ad7944: add namespace to T_QUIET_NS Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241009-iio-adc-ad7944-add-namespace-to-t_quiet_ns-v1-1-a216357a065c@baylibre.com> X-B4-Tracking: v=1; b=H4sIAPz0BmcC/x2NQQrCMBBFr1Jm7UASQut4FZEyJKPOwqQmqQild 2/o4vF5m/82qFJUKtyGDYr8tGpOXexlgPDm9BLU2B2ccd4aQ6iakWPoTOR9n4iJP1IXDoItY5u /q0qbU0UmiSON5CZ7hX64FHnq/4zdH/t+AJiUQIx8AAAA To: Jonathan Cameron Cc: Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, David Lechner X-Mailer: b4 0.14.1 Add AD7944_ namespace to T_QUIET_NS. This is the preferred style. This way the bad style won't be copied when we add more T_ macros. Signed-off-by: David Lechner Reviewed-by: Nuno Sa --- drivers/iio/adc/ad7944.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ad7944.c b/drivers/iio/adc/ad7944.c index 0f36138a7144..a5aea4e9f1a7 100644 --- a/drivers/iio/adc/ad7944.c +++ b/drivers/iio/adc/ad7944.c @@ -80,7 +80,7 @@ struct ad7944_adc { }; =20 /* quite time before CNV rising edge */ -#define T_QUIET_NS 20 +#define AD7944_T_QUIET_NS 20 =20 static const struct ad7944_timing_spec ad7944_timing_spec =3D { .conv_ns =3D 420, @@ -150,7 +150,7 @@ static int ad7944_3wire_cs_mode_init_msg(struct device = *dev, struct ad7944_adc * * CS is tied to CNV and we need a low to high transition to start the * conversion, so place CNV low for t_QUIET to prepare for this. */ - xfers[0].delay.value =3D T_QUIET_NS; + xfers[0].delay.value =3D AD7944_T_QUIET_NS; xfers[0].delay.unit =3D SPI_DELAY_UNIT_NSECS; =20 /* --- base-commit: 96be67caa0f0420d4128cb67f07bbd7a6f49e03a change-id: 20241009-iio-adc-ad7944-add-namespace-to-t_quiet_ns-a9ed69692718 Best regards, --=20 David Lechner