Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp992689lqs; Wed, 6 Mar 2024 03:10:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXeaL/YLM5cdBpzivru2mcqmQxEML1AazAyonenpCHf8f0lXYN3ThPW/dNUqZihZvIvD/yshHPKDYl8wKgW47kXnUGSJVNt37nURQ68ug== X-Google-Smtp-Source: AGHT+IHJnZ+rNmWpvo0EaCoNFyf1QlILGQuvuFx5Fx34jyWjnDET3tMgyjcxg9V8zDxXTKEu1qTU X-Received: by 2002:a05:6402:22e3:b0:567:80c7:33bf with SMTP id dn3-20020a05640222e300b0056780c733bfmr5434717edb.7.1709723445691; Wed, 06 Mar 2024 03:10:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709723445; cv=pass; d=google.com; s=arc-20160816; b=E7ayDOLQ27sw4Wlm93A8vPhAp3J1ZFBXf3zgZ1twaiBFc66S8/zPG5zvDvwtmMlp/o Rq3b3jJKbmocybC90lFOOkd+Hb1Q1hX+nFkyGXtiU1sChc9WnAjCWAPvLKj8iLpwGlwX sjHvyBguALL/EY39XMp8FfZP0rXAG93UTHa8O9WzkKnyn0GvpLScBzvsOvefjJdpmXwy GRJWZe5M2qmcWZ+z2ei/TjqAa42Y6yMPkd9IXx9pNCY/K/Qh6+uXMtHVGNa49ucoPBU2 e6lIm4BQV4QM45siaiD6/7bjzfVWOj1IEE1zW6IQ6xdKN5ZJjppN7JsskV1aHanq454a BvWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=L6EKGcI6FH4yAv8SzBRwbzyl3Aigjqoo6JxBUrx0dJI=; fh=NrlQSGYqBtbuuIozzLxlVTMkBs//b/2llfrLR+h4YPk=; b=jeAtXuwF2lRP+fiSuym72JYfIt0u9qNX5s4i1svIIiuDU6ePOzGB4k13JnRRhm+y4o i0b73oU7BoPIe0IM7r4tJCGosMjnFbkOE/PIvz3UP2KUGF7ALsByclDVt8hWikT5wgla MnUEgNxcvQ+dXy7x8OD225tFQlnGc5alLkmVpkvpzGTrqe9BpvcHllWFqwQ4SxGco4JJ d5dCgUDCSbhPdRYE7U72D+DJP3kqofAiB3ECUs1u/szeqC018xsvAhUk3Ok261l0Pdf/ l2a4W+GRgAD9rIRzmqms2uLMFWPgyuzLeLhUVtK9Z6ILjJxrILzCXH9X/GhAnv5XT/Z4 AkrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K5HD3iTG; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-93837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ds1-20020a0564021cc100b00565b4b999absi5977273edb.428.2024.03.06.03.10.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 03:10:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K5HD3iTG; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-93837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6C7C71F257CA for ; Wed, 6 Mar 2024 11:10:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 047AC77F3E; Wed, 6 Mar 2024 11:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K5HD3iTG" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 8AAEF77F03; Wed, 6 Mar 2024 11:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709723412; cv=none; b=jLu8CoSHDvSUiizo7YEjmGAVr8Ic+16ohTqi6wwwhEyRHiw4dRdLiJsEZRSUiTSAj9VYUd/oF6vEdboA5DKMmhJrk7+sZpsYx/J4GGM242NGs7V8UlOWS1afM4yNhlRczTnR29lvkCcg0s5K2cq+fOJCnXKGlQ3mZ88SjSfIdBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709723412; c=relaxed/simple; bh=gdocGrYkrRM1nLV5WBS3tkzTCIjByKexz8/GocXl1lI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aJBEAiGwjkHaZMaZD1fniBHNimISf57S/l1tlwrghZz2iEA9t6S85jad0lUWSPTdq6xweHQTndlR0NiAFNBhaFVFSgn7g8fYsJn5XhYos2sH6AQn+pNdTzpTryiei7I0Lq4ul+UUkt4/zzcq3qz1YNJVjIrc5Bdlmzvy6GJxvdU= 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=K5HD3iTG; arc=none smtp.client-ip=209.85.218.52 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 Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a450615d1c4so124932866b.0; Wed, 06 Mar 2024 03:10:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709723408; x=1710328208; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=L6EKGcI6FH4yAv8SzBRwbzyl3Aigjqoo6JxBUrx0dJI=; b=K5HD3iTGaLzA3DiBfST7bkr4pNureYqUFlQfAGAlzfhJaxMUJJ1OLWe2ZpwD6AsNyR I2PuxLGz2kbO5XVXT9Nb9LjBZM0SvgDhImUPDu/YqrKPf4am4ylRqBluyoI2oEezrkCR AIDmV5GPBktFjOFwiVn2zqm2TLmHIz4k+sQWlzurYo8X/bF/ARnjtSP+2KdAtD6OH+7F tOFBBCG/TG6AEpGwB9JSira+6JKWUZLqZZs/AZjQK/hn55TWsFW/1B8WpTw0IQUzrmGy APiHeoO/3GPNsGDUwjbL/D/efT5m/AhoFFYo/o4sQVHaF49yVFX0Mq+9F8WkP0Fnf3FZ iaiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709723408; x=1710328208; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L6EKGcI6FH4yAv8SzBRwbzyl3Aigjqoo6JxBUrx0dJI=; b=hW98K7RUIayH9+DalMZ8DuvAyVH/8CbMsgFEdfeH2EHNEPaiZVb84e6cJluNNN3XqZ 4q0De7bNF7e9TcYARDcNCKtfZFHTEc2OkZyRS3joUU07eEEsr7+KooGrWUYu0b3EajIj Pi4d/6fHY/MKXUvmjA8SA+9FtBwd3fL340EXQDxQjF3XK9xCYSoIOMRjCbPkIvomEgIs VXwuuRj77v0G7QJAznkYWQmGmvYTaUugWAGCt9L/bLRsA4Oj+Rvz9u5YqWDsotOYy0K7 TpP1WwAHKmMm5mOzvUEf5D75qkQJrp1Sot4ljqf4q6PKoryRgeHbJzKy2hqvw+4leb95 WZRg== X-Forwarded-Encrypted: i=1; AJvYcCXt5UKvdyRYoSqtcu6pSoVkFwncz2oO0LY/SeFSw7tAyoq8QlyUrhFhxoCpga1hYpvffM6uCNZ2rsAnqq30wmPWSCB4ACjX1VnLHCHoFXiCaO+YfbcyB+5R4OynnyPZb8sqqrc+lm7ZBQ== X-Gm-Message-State: AOJu0YzNqUWC1mg3pP51Ejw9IsrCmgfujq6lKzmKaivsB/J0cdxjDo6b V1KFzBNLdoUKpZZ/RDYEhZwTDDrEzsXn1ryx2YSsG1n/TSsQTtMQ X-Received: by 2002:a17:906:e252:b0:a45:8b1d:696 with SMTP id gq18-20020a170906e25200b00a458b1d0696mr5982096ejb.8.1709723407838; Wed, 06 Mar 2024 03:10:07 -0800 (PST) Received: from HYB-hhAwRlzzMZb.ad.analog.com ([5.2.194.157]) by smtp.gmail.com with ESMTPSA id w26-20020a170906385a00b00a4394f052cesm7002479ejc.150.2024.03.06.03.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 03:10:07 -0800 (PST) From: Dumitru Ceclan To: dumitru.ceclan@analog.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lars@metafoo.de, jic23@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, dlechner@baylibre.com, Dumitru Ceclan Subject: [PATCH v3 2/3] iio: adc: ad7173: improve chip id's defines Date: Wed, 6 Mar 2024 13:09:55 +0200 Message-ID: <20240306110956.13167-3-mitrutzceclan@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240306110956.13167-1-mitrutzceclan@gmail.com> References: <20240306110956.13167-1-mitrutzceclan@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Rename to AD7172_2_ID to avoid confusion with _4 model. Reorder id's by reg value. Signed-off-by: Dumitru Ceclan --- drivers/iio/adc/ad7173.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ad7173.c b/drivers/iio/adc/ad7173.c index b42fbe28a325..59a55d2944a7 100644 --- a/drivers/iio/adc/ad7173.c +++ b/drivers/iio/adc/ad7173.c @@ -61,10 +61,10 @@ #define AD7173_AIN_TEMP_POS 17 #define AD7173_AIN_TEMP_NEG 18 -#define AD7172_ID 0x00d0 -#define AD7173_ID 0x30d0 +#define AD7172_2_ID 0x00d0 #define AD7175_ID 0x0cd0 #define AD7176_ID 0x0c90 +#define AD7173_ID 0x30d0 #define AD7173_ID_MASK GENMASK(15, 4) #define AD7173_ADC_MODE_REF_EN BIT(15) @@ -190,7 +190,7 @@ static const unsigned int ad7175_sinc5_data_rates[] = { static const struct ad7173_device_info ad7173_device_info[] = { [ID_AD7172_2] = { .name = "ad7172-2", - .id = AD7172_ID, + .id = AD7172_2_ID, .num_inputs = 5, .num_channels = 4, .num_configs = 4, -- 2.43.0