Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp110200rdg; Tue, 10 Oct 2023 05:50:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjQJe5v/ZVjBQdqBWA6m+3ZEZFZqF1CGuPrHQUyphmMRPuJtMNg+y7XxLXwtVn6SKVsCyt X-Received: by 2002:a05:6a20:7f8f:b0:158:143d:e215 with SMTP id d15-20020a056a207f8f00b00158143de215mr24983612pzj.1.1696942224280; Tue, 10 Oct 2023 05:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696942224; cv=none; d=google.com; s=arc-20160816; b=XnVs6o7MKRLVhdI439spAiMfy+EwsOKFJRIilZv4WoUfQ6NGt0DnNuhxGTUA/i2COV QFxHRDHe/NYsLkHOq7zk56Kz45JhXyUCOmEBAzurrimSKG/bmvabo1b8jUffeYyXTiX2 2NPDURBnlvBo/369Hb1D4AyY5NFKVPw5yVK3L1FSQz2rgvLVNHM/r8cZOzFsxbb9haOp iBLBA7JTV5oFnIjExv+LP6oZEtNy0STKBsZ2jR9w13YosIIGT1X2xBGrWKsp0sQH95ys EjL5kQ2eFRBWGi9nBqBj4uT/f9vK/zMEYvkbqQtGlHe7QkCn4lXEW3SI87afD17CQwDS kxJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=zpyGzsJqUZOdlNhUzdO0XHC5n7dKd8p4LRJo7y5zFRo=; fh=xFhSPHmTnhgoOeC8pQAxFHg58H3M3s9acDkisPDPvtU=; b=kZMe3NvSKt2CT3AFKI7nVXsXYupfD1YB8UiSGYmW42R1/mvVgt8AgkJsNjUgBnm8/J jMeEQQO5IAaBymNUNSRgbQx8xP8WkPFDkm0ErH7GFgvR0EaBnnGUwTlOvLaqgS+zNA2t 75nK0Z8TY7QoNy2F6w3nlp5XEr1vXiLV6YAUOSxx7m2GsS+RKxmE+VndWVn2Osl2JXkK gw2joyzEhg3E35vPhmWCDksk9jpv88xy3t2czdqudlPrNH0HZw3tytQkfYQOFzxwvstY dPoFcJkkRdjrSO7JQinqRowPryFucV3xP873OXUBTEgr+0h+PJRZ4yT8MLGotrNq2y8m PaLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=MFsqCqzB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id bv124-20020a632e82000000b00564efb3bae6si11689470pgb.564.2023.10.10.05.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 05:50:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=MFsqCqzB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4D8EF80E6C48; Tue, 10 Oct 2023 05:50:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232066AbjJJMtw (ORCPT + 99 others); Tue, 10 Oct 2023 08:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232047AbjJJMtr (ORCPT ); Tue, 10 Oct 2023 08:49:47 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B60D4C4; Tue, 10 Oct 2023 05:49:44 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-53b8f8c6b1fso4859072a12.0; Tue, 10 Oct 2023 05:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696942183; x=1697546983; 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=zpyGzsJqUZOdlNhUzdO0XHC5n7dKd8p4LRJo7y5zFRo=; b=MFsqCqzBwtbPYkZzimJkkeelASqdtkzchD5ExD1ibdNERTvEPuSUn+FPECCnny1ipw I08tty6E7rONJqMnQdToCqhmgmbtfYJB68+aA3UnDEB8HO9/2/Meptj9oxj9LOyOT2zA MpxQCqleVZaGZhR44IFLfJVO0Y0KpUmgyMqRmaeHe0ydhjSjl9IrHMHjvmaLJpn+K0Cl ymV9VFLdJVtNShUlFx74e7vdsQLxN1tYSZX+oysda1+dxnW7ZRakjodlTxJQ76n+HT5J QP2AKz6CsWkAbLhXltVFuoJ9gHh/slaqD75vpYoKr7oCI83mJPe76IcADuhg2o+tY+VV 46aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696942183; x=1697546983; 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=zpyGzsJqUZOdlNhUzdO0XHC5n7dKd8p4LRJo7y5zFRo=; b=LpXEmzkjiMbS2+5tU3snaGSDmDhi98Kyz33C0cwwoRcQsNejLnKkagK2Z+96x3XpEU bW6iujbVAJzmQfFTZ8ebkkpp1uv6SA01+Fx2jm6YjZ60QKqYiNfdLAkifyMnrMD5ox7W H8CAbcqGMr3aGNaH35ie/BzueTI7jZAZiX+Oc21D3jwhTxk8AxZt6oETREeWjoXTqIta 300j4TrartMUl0iEWvPX8Dv26SZI7SSuTXP/K8BmdrN+8zGHTuujGP9ZXakNGTuML/wu Gzb+C+lTmMnomS4Xw6Bx94obq/WmfUV/zAzWIOMDc6X4ieYWh7OFl15tOMS+pNeuGvaS zw+Q== X-Gm-Message-State: AOJu0Yx3Ct/77HfoEPTPKWh1SUEjiCcxNiCDmrX61T6SdM8wwUHGGcLw V0XjamGS+Z9rbR+d1sXNSUg= X-Received: by 2002:a50:ee91:0:b0:51e:53eb:88a3 with SMTP id f17-20020a50ee91000000b0051e53eb88a3mr15020100edr.25.1696942182843; Tue, 10 Oct 2023 05:49:42 -0700 (PDT) Received: from spiri.. ([5.14.139.113]) by smtp.gmail.com with ESMTPSA id f26-20020a056402005a00b00530bc7cf377sm7629476edu.12.2023.10.10.05.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 05:49:42 -0700 (PDT) From: alisadariana@gmail.com Cc: Alisa-Dariana Roman , Lars-Peter Clausen , Michael Hennerich , Alexandru Tachici , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/3] iio: adc: ad7192: Remove unused member Date: Tue, 10 Oct 2023 15:49:25 +0300 Message-Id: <20231010124927.143343-3-alisadariana@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231010124927.143343-1-alisadariana@gmail.com> References: <20231010124927.143343-1-alisadariana@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=3.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 05:50:09 -0700 (PDT) X-Spam-Level: *** From: Alisa-Dariana Roman Remove extend_name from channel macro since it is not used anywhere. Signed-off-by: Alisa-Dariana Roman --- drivers/iio/adc/ad7192.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/iio/adc/ad7192.c b/drivers/iio/adc/ad7192.c index d72a190c5109..fe47ef43b3d7 100644 --- a/drivers/iio/adc/ad7192.c +++ b/drivers/iio/adc/ad7192.c @@ -895,8 +895,8 @@ static const struct iio_info ad7195_info = { .update_scan_mode = ad7192_update_scan_mode, }; -#define __AD719x_CHANNEL(_si, _channel1, _channel2, _address, _extend_name, \ - _type, _mask_type_av, _ext_info) \ +#define __AD719x_CHANNEL(_si, _channel1, _channel2, _address, _type, \ + _mask_type_av, _ext_info) \ { \ .type = (_type), \ .differential = ((_channel2) == -1 ? 0 : 1), \ @@ -904,7 +904,6 @@ static const struct iio_info ad7195_info = { .channel = (_channel1), \ .channel2 = (_channel2), \ .address = (_address), \ - .extend_name = (_extend_name), \ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ BIT(IIO_CHAN_INFO_OFFSET), \ .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ @@ -922,16 +921,15 @@ static const struct iio_info ad7195_info = { } #define AD719x_DIFF_CHANNEL(_si, _channel1, _channel2, _address) \ - __AD719x_CHANNEL(_si, _channel1, _channel2, _address, NULL, \ - IIO_VOLTAGE, BIT(IIO_CHAN_INFO_SCALE), \ - ad7192_calibsys_ext_info) + __AD719x_CHANNEL(_si, _channel1, _channel2, _address, IIO_VOLTAGE, \ + BIT(IIO_CHAN_INFO_SCALE), ad7192_calibsys_ext_info) #define AD719x_CHANNEL(_si, _channel1, _address) \ - __AD719x_CHANNEL(_si, _channel1, -1, _address, NULL, IIO_VOLTAGE, \ + __AD719x_CHANNEL(_si, _channel1, -1, _address, IIO_VOLTAGE, \ BIT(IIO_CHAN_INFO_SCALE), ad7192_calibsys_ext_info) #define AD719x_TEMP_CHANNEL(_si, _address) \ - __AD719x_CHANNEL(_si, 0, -1, _address, NULL, IIO_TEMP, 0, NULL) + __AD719x_CHANNEL(_si, 0, -1, _address, IIO_TEMP, 0, NULL) static const struct iio_chan_spec ad7192_channels[] = { AD719x_DIFF_CHANNEL(0, 1, 2, AD7192_CH_AIN1P_AIN2M), -- 2.34.1