From patchwork Tue Feb 27 22:10:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahar Avidar X-Patchwork-Id: 207467 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2993341dyb; Tue, 27 Feb 2024 14:11:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWJ2ZoL7TZGy2/yPiPS4z4K9bO+PqHeUCNaJHNi4wYCx3XgkcNBZRqzY9dDbw8p4dbuXfHK6L8eiT2anqhtyAwfBGyGWw== X-Google-Smtp-Source: AGHT+IFVurRr3c/FOvixynVkInqKyIF4Zw74uBiIXfTbgCQ6vhOgP5wMMZheSg2MNHdjl5po4PN6 X-Received: by 2002:a05:6512:3dac:b0:512:ed33:c16 with SMTP id k44-20020a0565123dac00b00512ed330c16mr9084247lfv.8.1709071891926; Tue, 27 Feb 2024 14:11:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709071891; cv=pass; d=google.com; s=arc-20160816; b=PyR3H12YwvawaHjUtxDPqwjjYcZvdEzUU4gU9K0gxcgYKqgnW0E3VT2bTD3KonyxMy fUfauZbd2mQTXI4lkAlqSryhV7BmcxyGTYz3SN7I91Vq9YQsRfSj65KIL4K67wqJwA3W H+Qw9zUeYa8q84RbfRVBH7c89UwrTMe9LBnS0JwMd8nPoxnf5Nzm+7VcYu3D+axrZFbV xp2TP4MyqLixojupMh4l+EbsNh+SykvYT4DzneQ+gkTzAGcYrhgloXTarKLlIyhtEm6A WYMni1aFmT+p6OaakpYwpds9OG6zLCkao4daWT0eYYPHJUYjWX2K2X80BnOcqbA+GUhH Wy1Q== 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=7Ahqsv6gOyMACRg/0NA4F3TAuiEZ+oz6aihxiy2L38w=; fh=2X4JmRgYYhDmO+/NY1kafSdbO3RN2ZwMixTnQ2nRZ1k=; b=inKY2sKf5HM+XJ6he296HHn0pbMlHTzAiPhaCs+ywjNIRFGOopPQ1yyISHXeyZGP1m PKJ7w6HhM90M+p2+audvUPlDFjnGZA+5ce1Ps92SzzxVQPUV8IN5+lktiU1ErtPHiWjk YrZTDUB4J3DoiTtjnqhG5mKH6rBL2DIzgm476YmfpTxOPApEYbZVwaoWxMnLJ8OY4H3e 6FGKA+HGueaXPQWF2BwnTwqWg1AVUeUbLrxSBy5VCOyf7JHZ2Voq0hOseG1G84O/IyGh mJqnEeMg71crmbR/dqFiO6PrGrcj/mv22mURN2yViVhHDjCbFmkj/83mbVAYgM7gFRVt Ctjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TyQuJgN5; 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-84101-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84101-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a21-20020a170906275500b00a42f801c4b4si1091089ejd.359.2024.02.27.14.11.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:11:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84101-ouuuleilei=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=TyQuJgN5; 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-84101-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84101-ouuuleilei=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 897D31F2242E for ; Tue, 27 Feb 2024 22:11:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61F37157E6E; Tue, 27 Feb 2024 22:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TyQuJgN5" Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 2615C151CD9 for ; Tue, 27 Feb 2024 22:10:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071850; cv=none; b=jXJonvw50kh5oCYxe8S68wP/bvFCF7dYpN4CAebJ5+QXNOJY2NMBlm6iUslB+W9jtRKN+g7pkvBN9v9kJ/hq6NnrC8qOU4mlgOk47SaDmdkF7+zlihYysgObal0wuKK/oy004Om9fmzh2frPPq48Ex5QqfLnmbaUGNx/nK+6l2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071850; c=relaxed/simple; bh=+2njOV5Ga0IzlzN0XUiI1XPr4AZxQTAQfakyMWn49qo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Fjbth3iU1YPei6Z0ONVcobLhvZmtBC0TccLf/nmxjpRVjRKseMo/6YGFFSqW1EpNQ2u0XYd41mEEo2w+2IWTOL+719kdNXs4FTqqdbvvrhWiKtgF1gB1RUiCtgGSZPWICOPDEV9Z/QTTAMBMn5oedGAUB0OuAiF6uRoIwaHqR/c= 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=TyQuJgN5; arc=none smtp.client-ip=209.85.221.41 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-wr1-f41.google.com with SMTP id ffacd0b85a97d-33d8739ddd4so3560570f8f.2 for ; Tue, 27 Feb 2024 14:10:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709071847; x=1709676647; 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=7Ahqsv6gOyMACRg/0NA4F3TAuiEZ+oz6aihxiy2L38w=; b=TyQuJgN5QufjGQzZUqLNI3SlLOJtYEyGedM8nK0u8gP0YbRV2q9VlY7gnakAW3GvYP yrasffFGnX4Eh/IVp8DEpo/hKPPGNy1TiE36OcoGebysGL4XAcS/nxyyqUw4W4KHl10S 2FHFLTO/F/H2gVzfrgVjtvo0OUaUCQjgE2Gdpib6ERUARvWt8EilrIM0G2ApzagTS3uL QfxgbvYtj57veQa1+CUPNo4RtEoov8wxlejdROJn+oE36kXQPPeB94WGhFfU39crhsBI eyI7DSy2NtsGUdNbbng2qi4C8WwuhyRY0sKuPHwGRUflnZN8XeY0HilR0yW6Y1S9IW9/ 46nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709071847; x=1709676647; 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=7Ahqsv6gOyMACRg/0NA4F3TAuiEZ+oz6aihxiy2L38w=; b=q8AM1J3zRG6moiXxSN1FfNIhj0er9wmqtk3sHT9LQTCF86j5YjHP5Zzk8UI5pcPTCL b+fJVWIgVCf+pQf3pnd6p/pna84NOWCWmKtdSY61uAxv8L1tDNV1/eCLTk5IdOC3Dw/h sWFkBF0vOckL3Rh77Se7j2I77nf2Wmoq0w4WsCoZLmbegu/OHFV6u5aPEirW/lSUdUa7 bnEaFKY/QDFPfU2cQrvn3jvdl8TEvaJ6zxLrfaW7Hqs4NRceEqI/KpbMHYWsU6gNIjsp IAvT+zW4CP2ss6UDDOcdgzYDg8WmWGeo3axOB8fIXtRB3ffcUl8pA5B4NboqgnJml3Nf bi0Q== X-Forwarded-Encrypted: i=1; AJvYcCW0iOkchW8E/bIqHjIxoWv4IMtEzBTFO2m98X04AzeqTJ1ZfoiH98gD0xWN6g+mbrB4SQ5juiOof+Xb05KWUxX3gaTVRbykdnalAnrl X-Gm-Message-State: AOJu0YxOiWLEzLw7OsV4g5eedRqnvecXcNx2WUp/j0vabspibTiR1FKw xzG7ZPWRTppo9Q80RqTgHu9MlkeTd0gWTF853SFldmvVmM6YIL6e X-Received: by 2002:adf:eb92:0:b0:33d:be6f:7dcf with SMTP id t18-20020adfeb92000000b0033dbe6f7dcfmr8086572wrn.24.1709071847468; Tue, 27 Feb 2024 14:10:47 -0800 (PST) Received: from YOGA.local ([2a06:c701:736b:f200:73a5:2235:8954:9b7c]) by smtp.gmail.com with ESMTPSA id q2-20020adfab02000000b0033cf5094fcesm12562384wrc.36.2024.02.27.14.10.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:10:46 -0800 (PST) From: Shahar Avidar To: gregkh@linuxfoundation.org, luca.ceresoli@bootlin.com, benjamin.tissoires@redhat.com, elder@linaro.org, andriy.shevchenko@linux.intel.com, robh@kernel.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] staging: pi433: Remove a duplicated FIFO_SIZE define Date: Wed, 28 Feb 2024 00:10:39 +0200 Message-Id: <20240227221043.532938-2-ikobh7@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227221043.532938-1-ikobh7@gmail.com> References: <20240227221043.532938-1-ikobh7@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792091768006121163 X-GMAIL-MSGID: 1792091768006121163 FIFO_SIZE is being used in both rf69.c & pi433_if.c source files. It is also already defined in rf69.h header file. Signed-off-by: Shahar Avidar --- drivers/staging/pi433/rf69.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 8c7fab6a46bb..b3b8d1abd3eb 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -13,7 +13,6 @@ #include "rf69_registers.h" #define F_OSC 32000000 /* in Hz */ -#define FIFO_SIZE 66 /* in byte */ /*-------------------------------------------------------------------------*/ From patchwork Tue Feb 27 22:10:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahar Avidar X-Patchwork-Id: 207468 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2993458dyb; Tue, 27 Feb 2024 14:11:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUWhL4sGfL6/uCzikDst7NjH8TqLu6KVBoFWB0xRp6Zccr7dA6K66T96q0e0uGnswJ04kvyTxv+CTynSL69HDAbCjq6gg== X-Google-Smtp-Source: AGHT+IEi5vaLAMVZxtYdU0OsdUqhAFpAKLoYUXvow9+DtxAFLtt0dqZuG9z/m/CPHwNov5VCgLAL X-Received: by 2002:a17:902:684a:b0:1d9:f5dd:2480 with SMTP id f10-20020a170902684a00b001d9f5dd2480mr9126392pln.54.1709071908237; Tue, 27 Feb 2024 14:11:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709071908; cv=pass; d=google.com; s=arc-20160816; b=iB1jtkm9px/qdkdRYPHU5ZJc0vGQxR+qLxmXFkaEx/X2y9Fi/hRva/EsMD816Bwdgq l9AqZ1/U37nql6uR7N4yYGFZNWi5aatw/sUg8R5gx2p1B9ktLOkAInKZ34u53pB87BBS E0uJLrXoAAa+7TxqiX6H/kCMjmbtJv1k/DgIUlh0xvz8y/B8p748r0lhG4DPo70cNQOK RkCOXJobFN18fAQKD8AMz1peRUQje3B5GaPchYCBkoDqVtVH7qAeb50MmJYmqUZk6x88 nGs2UARRIlFxUHSGsqgqAkhENsVpga9MSn4IyY7oVLYElciAoy/1Tb/fV3EfJxAVCwRb A+EQ== 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=ByFJ4T1AQt6fR81lqN9Fb0sA+BvqHSN66dpmEs3Guqc=; fh=2D2CZ2GqV4qWOdjfAoxunCtunP+osDcBnZ0+GvIH4T8=; b=Vk5ooaCNBP1f33C23o77ZnJXJSRgrlC3gXM2KuXq47zLUO5GA5YWglx5Tc7u6rnhIG cddSfhGnN45XxD/jmL6ThekMj4eFISrWNmjdaTaWtd4tsvI1xfvqfinTSLHS6B6WbwbM EKidEgoOZL6XjMDP2AqKfIekVcV+wN+K2CNPulSbmWnXRiCMWcSXdzlCS4e228c/FBqo 41lU2JhvvnmOY/EJuM8z19BhWLDdnJHGOsw/491lZdr7Jy+HIg7ZC2mN5TeF4DZpDD8t ySQeyT0W53NFJdYL33Pq15xFO0voy7blKzOykwy3gu2PKcJ/i6K7b+Upi3a9nUxvzjjY HeLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y6GbpXPV; 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-84102-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84102-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ja4-20020a170902efc400b001db70a99e90si2029026plb.430.2024.02.27.14.11.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:11:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84102-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y6GbpXPV; 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-84102-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84102-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 14BB6285831 for ; Tue, 27 Feb 2024 22:11:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E0EA1586D0; Tue, 27 Feb 2024 22:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Y6GbpXPV" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 A167D153512 for ; Tue, 27 Feb 2024 22:10:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071852; cv=none; b=lNxq+/Qcf7hOUgMmO/bo80OJPsQKTps0mRGPp7ZX0Q8/ts7XHai42Zu1jMeVneFDUP/R94vNbkvQpWwGhZONDRW9jjq9Gb2BWw0v7yxzLkmwlG7qhkqeM4g/DO9NEooLGjS8m+0NJ5H4CHPxrn34ko0FTaAD8Gwt+T4HBQZarLA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071852; c=relaxed/simple; bh=fmnSLnIUWlgp5ur85n+HDFL+jupuhUG/KRlYbWXGjS4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SDLN08ObuFcdt4rkBqO2hx1RNE3x0ygz/2gDpPRapZuCA4Ps02DDpqziZnTgPmvtpLE1FIM8v6dbOx6aKp/ALsJemCKxOCCf78pZo36EEaz0ewS/9Hb55OgBdB9EbwT6vIaadIdecZH8SgNGiHt+9VFb6LkOIJ9XEtF05RCsoVc= 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=Y6GbpXPV; arc=none smtp.client-ip=209.85.221.50 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-wr1-f50.google.com with SMTP id ffacd0b85a97d-33dcd8dec88so1943079f8f.1 for ; Tue, 27 Feb 2024 14:10:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709071849; x=1709676649; 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=ByFJ4T1AQt6fR81lqN9Fb0sA+BvqHSN66dpmEs3Guqc=; b=Y6GbpXPVfHGaxRV2uWpzEuexOZ3nQCXwO1Sq1eJiCT2Yds14Kls/y3yS9EVU8x6Tbm i25ojuFB8jrX9HEd4eeHMnAVmirXSlxw5IJsCdh7t7ZZe64l41H9shF3nsJIiClK26Ld 8BLhxuDu4lzY3+gzZPkI0QNibkgTyDjP7EKXOdsodoS8i5yq0xgR9pPd32FZiJEXwGRM 9ad2EaiKeQfODMR1JoSIXWvgzLsKTiUqzZAsZ6Nab8GVJdFiTloWwWEh1TEFNI79L4r+ xZ1eY1EExQnnZXLKkDIpQxFIPSs/BrWfhUs6E6gMgp4tEJNK27VPSLoIdrGhl16COt+3 9+Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709071849; x=1709676649; 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=ByFJ4T1AQt6fR81lqN9Fb0sA+BvqHSN66dpmEs3Guqc=; b=bYuZ7Nh9NazhAHi0ZT2TlXVnB1aj0LUP5sf2Exr97SeombWFw1rtEtgLBErwTOcpLj ztbmccVeTw0fgZDjdirASGt2OdVP+v3mVgYjNH10I2BZJbFkicN2pq2wVXTNuU9Fys/v ba3iwsRV0YICH8eQZEYWnWFfJcVtDE9nR6BI5addapyEaY3kbZ6O/VuN4xXYJwZmVKt2 fA/DE7JXXonTvuoLygCKcaG+eJ/oGw/Ay9/uJ1Z0OuNQFfDJMkKZDG6R+XVN4naVhtTI lO+xpbVQu44JqdVBdzi4Clped/+tVimB5MOdbfMyzbn2rG3aqcDi+zxQeRMEGPPzh5u6 xAGA== X-Forwarded-Encrypted: i=1; AJvYcCX5Mlr+LKYSiImXUSmu4h5FTYCZLXYmQe/cWosFfB4x8YqixfbwU+COwqrUTRETTG+jfWj/5+AwHZAOkXJlEhEAKIsO7e4QAnVctqS0 X-Gm-Message-State: AOJu0YyR+FvPJegrCHcOG/OdjtDSB7Tb4yYBlM9n30KkuuQnYNNuj9fo ER4IniTp6ZxaEa4L3fZluFOw5yBKowTCK/ji4KXt9bLs4x2vfIQ4Mw9HY3LM X-Received: by 2002:adf:e7c1:0:b0:33d:4c3d:2975 with SMTP id e1-20020adfe7c1000000b0033d4c3d2975mr8642928wrn.32.1709071848925; Tue, 27 Feb 2024 14:10:48 -0800 (PST) Received: from YOGA.local ([2a06:c701:736b:f200:73a5:2235:8954:9b7c]) by smtp.gmail.com with ESMTPSA id q2-20020adfab02000000b0033cf5094fcesm12562384wrc.36.2024.02.27.14.10.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:10:48 -0800 (PST) From: Shahar Avidar To: gregkh@linuxfoundation.org, luca.ceresoli@bootlin.com, benjamin.tissoires@redhat.com, elder@linaro.org, andriy.shevchenko@linux.intel.com, robh@kernel.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] staging: pi433: Remove a duplicated F_OSC define Date: Wed, 28 Feb 2024 00:10:40 +0200 Message-Id: <20240227221043.532938-3-ikobh7@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227221043.532938-1-ikobh7@gmail.com> References: <20240227221043.532938-1-ikobh7@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792091785331582994 X-GMAIL-MSGID: 1792091785331582994 F_OSC is already defined & only used by rf69.c source file. Signed-off-by: Shahar Avidar --- drivers/staging/pi433/rf69.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 78fa0b8bab8b..52e43a909b03 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -12,7 +12,6 @@ #include "rf69_registers.h" /* NOTE: Modifying FREQUENCY value impacts CE certification */ -#define F_OSC 32000000 /* Hz */ #define FREQUENCY 433920000 /* Hz */ #define FIFO_SIZE 66 /* bytes */ #define FIFO_THRESHOLD 15 /* bytes */ From patchwork Tue Feb 27 22:10:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahar Avidar X-Patchwork-Id: 207487 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3006767dyb; Tue, 27 Feb 2024 14:48:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWjaiRCCnSQFf7IH1RSwul/PMzF/fHfEwckv5vtzm6N7P4ssZIWai1dF55eWyaMTVwopHVKkO/t/I7y7PylabJf7w0lNQ== X-Google-Smtp-Source: AGHT+IFso/d5oGO7/nDtX3rnX9yhUvwdfs+44bkrfVLRhCYhizRsNtuYCHDxW6K2r6DW1azLNYX0 X-Received: by 2002:a05:6808:2205:b0:3c1:aa85:7aae with SMTP id bd5-20020a056808220500b003c1aa857aaemr4187467oib.45.1709074083844; Tue, 27 Feb 2024 14:48:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709074083; cv=pass; d=google.com; s=arc-20160816; b=1GDzbjlU1TkOAsdOXh+09PXgREF1y5EBDHayB0dNXJRg26+SPYE8ai91wIb53paguN O7PizPIfPMUYZgWPWqAz4AeKaIb0DhVEVr6f+eDh1KHpaFvPOr54gj4DknhVSrDghm0V vxyMKy4A9DXJ3FKTWdALJasc54MzpXPRSKv0KbB+x2FHLZ4t485g83Iz+b37OP9s0gL6 OgVea/P17tpSfhuZhUPAdfCmjh/2q9wbwPShToQeTC16TX+H7WshfHXYvg+uYuDoMLJl r4Ztzb4fzbG3/EGVZqtr4oJh8tDWCxbsPYVL/odkzTMvGrO+gN/PYMXc/s5Iz22deOrC OXbw== 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=ieLYzymPNePmb67aE/EpZNATNNR4k3uKBe/0iiseYBc=; fh=RlscNbcfqtKQDE3j+V+N/nMn1ihemJyn8XHW1ka5ALc=; b=rudfXC/0akeiX6qpNcwKmxgQpCf3dTvixLp26qPMnTDfYmnyEUVIrzvKtupyBI83He 7tFzaoVSWk6MxAVOtGc0o5lGcp0x4LzpKiDV3M+bYnP4o9yYvVRimJ2AUhkXkbLkK4w0 RFSFwN8P++qCwqeesMhsBwd199wnA8ZTDegBRcx0Mh0tj03VrXgvxgaiVAMKmL6yZPqX 7TWpdqp5NDDbEq7Q2ZovUzah9SNDj5IRb6fYsknZODpBEr7AWN/0jh/7t4nzAEe6vPxq 1pinyIkOyXso+hVKvmsMKBa84hX75POqaYtKf8DMU3sjs88pE6G5JV2n0NM9mV/0FW8R yKgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=H6RraZgA; 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-84103-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84103-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lt4-20020a17090b354400b0029aad483decsi107236pjb.132.2024.02.27.14.48.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:48:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84103-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=H6RraZgA; 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-84103-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84103-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2AAF4B2FAAD for ; Tue, 27 Feb 2024 22:12:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 404F71586FE; Tue, 27 Feb 2024 22:10:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H6RraZgA" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.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 D92E2155A29 for ; Tue, 27 Feb 2024 22:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071853; cv=none; b=INL/NqsAAFJoLYIzUvF8xANmOlvEPCOLu+k01k3R8okxQDnOoc1AB7Z2StgW4+zLdPh8iupcEqZnRRsTbWJsUVl/JsvaQGCU7RV9rdU5vutZqQXAH0bdC3zumciekH2Z5T7xWkI12rhmLFRtJwCDl4EbybL7hsBbnRYXQE1PPGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071853; c=relaxed/simple; bh=sD4PGbM5HqA6toI1/CAMqbYx9lSjxRaalfZB/ur59io=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dms4OWsPJLlt6MMiYrOtPXIUCVhKJ/3HRGViwQFQDEodRXC2g2i0G8INFhqpTiMr8+8sPRM/wlCfrxyF1xx0Phx8WuaKEat2aQrS3iv49P00kYI7Jj6uWTeyzzg1pz149YOc5cMQQFFyGhD5K8OKTcuHSAbBIMmjdTCDmYOJOiI= 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=H6RraZgA; arc=none smtp.client-ip=209.85.221.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 Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-33de6da5565so1137405f8f.2 for ; Tue, 27 Feb 2024 14:10:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709071850; x=1709676650; 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=ieLYzymPNePmb67aE/EpZNATNNR4k3uKBe/0iiseYBc=; b=H6RraZgAYJAQovkkGi4bmyI+U647crDPHWVmTK7z3+GRJ6CIxXpe4mPEgonn+/7Gll k3RhKh95mYeN2QS+r6vwNd0MYVDbbchRljeopMEOrzpAOXtG8zON0SkbK6aHq+4Hqco6 xWwAFew8CFZYXvomR9iP2kJ2DOOY5alc0YxhICC9KqgWNk7xuVfd86F1sbszTpIxN/6m eiquwqLapMvG9b0ab6E0ZEKvrQsGa8LXkpalrX+0eJsoxaYW87Co/6G5cPU2SlBDlQXN yqVDHt20hbcVhR8zWKp45ESkeT6XF34pYdRqnacpDUJb9lSxO2QCXa9hiN8TspK1Bnu6 EPmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709071850; x=1709676650; 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=ieLYzymPNePmb67aE/EpZNATNNR4k3uKBe/0iiseYBc=; b=DzGCPPqBR0YrelaPsUvMGuiLkCjHgkdtT3syD67VFeQVUV/sutb34HA0q83nIepVX6 wJkN654ow6OHmdiDguyHPGq7FkS9l0DCQ7wRvjH5zUCviCvq+/uOamcjD/jFGhUn5OeE JIr695Ox+ZHMoSteEn4OOHWeOtTzHhS4H/nDAMQDNXS+L9HiiUPWAO9z5E/yaz1TamQf 5aX3BK5K9bwE5vlFu1IRW3EylaCfeWfCvjSN5rbXB/mkde/vzxvIDlori2kvpU7cXBSo i5B0xOPVfssq15vX6ICilFl/MABERjXIw1Zci0jPZVU5YPTlBEcGlEIwPwxL+I7rdUlZ n1pg== X-Forwarded-Encrypted: i=1; AJvYcCVJR9LaW5VKqhVckrLfNKsk7457RZULhNsKZEDg+UG5VeZIiWEppDUtU8hLHmuIBL9Mdn2poaSpC3UR8asvFQ9PLN0d19D6CP4GTwiQ X-Gm-Message-State: AOJu0Yw0aRT4OAqvF4fcctlA2fqLIQFnULmMJLtBEZcvKY6ZSyBxc5Rw vFqwlC1/KI2p+XerG9pGyUgyFcbk6SZ3nMlMvrgyP0qrRPEg4HgL X-Received: by 2002:a5d:468a:0:b0:33d:50cd:4672 with SMTP id u10-20020a5d468a000000b0033d50cd4672mr6627351wrq.21.1709071850411; Tue, 27 Feb 2024 14:10:50 -0800 (PST) Received: from YOGA.local ([2a06:c701:736b:f200:73a5:2235:8954:9b7c]) by smtp.gmail.com with ESMTPSA id q2-20020adfab02000000b0033cf5094fcesm12562384wrc.36.2024.02.27.14.10.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:10:49 -0800 (PST) From: Shahar Avidar To: gregkh@linuxfoundation.org, luca.ceresoli@bootlin.com, benjamin.tissoires@redhat.com, elder@linaro.org, andriy.shevchenko@linux.intel.com, robh@kernel.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] staging: pi433: Redefine F_OSC using units.h macro Date: Wed, 28 Feb 2024 00:10:41 +0200 Message-Id: <20240227221043.532938-4-ikobh7@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227221043.532938-1-ikobh7@gmail.com> References: <20240227221043.532938-1-ikobh7@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792094066533728531 X-GMAIL-MSGID: 1792094066533728531 Use HZ_PER_MHZ for a more robust definition. Suggested-by: Andy Shevchenko Signed-off-by: Shahar Avidar --- drivers/staging/pi433/rf69.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index b3b8d1abd3eb..5a1c362badb6 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -8,11 +8,12 @@ #include #include +#include #include "rf69.h" #include "rf69_registers.h" -#define F_OSC 32000000 /* in Hz */ +#define F_OSC (32 * HZ_PER_MHZ) /*-------------------------------------------------------------------------*/ From patchwork Tue Feb 27 22:10:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahar Avidar X-Patchwork-Id: 207469 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2993647dyb; Tue, 27 Feb 2024 14:12:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUueSwu4o/5Wq0AOdOKQtWBgl3VS5Q64tJvfVBJdT4aNHtmIAr4XYi8hzYCz1Y7fcGkRX8h/9ZLxNl2IVkdrJRAMqo2rA== X-Google-Smtp-Source: AGHT+IEGWeQJLY7M7kIyq6T8Ci/EbMbQXUPM5UDbf+xU1sioUkffFKoLHHK/nuvP0p3K9Wipi/nk X-Received: by 2002:a17:90a:4b0f:b0:29a:8457:246 with SMTP id g15-20020a17090a4b0f00b0029a84570246mr900468pjh.11.1709071940322; Tue, 27 Feb 2024 14:12:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709071940; cv=pass; d=google.com; s=arc-20160816; b=w6dWtX8mUx0PPyuun7cQywle3UBPgcrxn6zYGNvgWvTfZmRJBGTqVFdyycWhdM785O FYRvKsYzg6Z10mgn2knF7ScahGgs2khpnRutxq/IDstrYMzkR+WUNbfzkGU8p89FDArK rQCtjiW6IHC1+UvwVxLX2gcgm0xkMDh3teTj0eeadRkq0UTLyEI3BpvC9LZxGheXZZxP 0LQr2EMi3MFHmJz/JJTvolImWpe8kKLLUirdZTM0teeFeByOOeNx455UxA2WAqH33x5f ah55wtbYBncabu0HYzRDsHNAwajyCrA5ePQJB+nQPMMf4DVVBpB4P6uzy1i6ItA01XKr dx4g== 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=56OYpxv+7Sg0fmYSpVc7Gnw4S4WJ/wpnYoYBTxSpZBc=; fh=q5w0dnO2nQi11is6pfHAtj4ogKclSgGAhf7UgAYeqpU=; b=N+IgJXtia7MxYNEB0FROVldZIu1rxBGVOsFE/UyRC3ty5zYTxsYT/6hqF12+WyJR3G MbupnT50tznDxKW6KVsPrZ8gddN1hz6v7GnBkgI1n1qU4ice+X8znP+ADA7o7ud3zOT3 l9R0ccvVejY9xdwUaa6xjxYVKdgqbk24XXv9d7xYwVVsTz3jW8SrKsl4+FUG19hQjjoq qysrbbTz/TETJlPHlqmUc7JVDqw5IJMTaWwsFoP5YXYVVqb190L00S8oDEB6iq/BfA6E BGrpld0XAlZOAa/XUhqEkkFZ8759bPRibQx7ObqCm/b9IpKZ/NhQgk/OiCNpaHwVg3py Nr0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OC5SYPrq; 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-84104-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84104-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id sd6-20020a17090b514600b0029aeab5b959si57718pjb.177.2024.02.27.14.12.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:12:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84104-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OC5SYPrq; 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-84104-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84104-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 27DC42850CD for ; Tue, 27 Feb 2024 22:12:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC5A6158D7D; Tue, 27 Feb 2024 22:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OC5SYPrq" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 90C8E157E86 for ; Tue, 27 Feb 2024 22:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071855; cv=none; b=vENbUDeVHI7HHyyFAYLuHiY/UbffVEm9sddMKiNqh+QURJV8ubFU12nIlYHVqXKh+qDRgCTD5RrJjQ6SqRJQhKuUnYF4XDq58zJbSgAZnAWHYlTwvGFCymxAkKefFyHPxOivxU2+2kBtbSP7z6uRLmhWKi9oMDL33b037dabEXc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071855; c=relaxed/simple; bh=ZLpd/FTiTFzHnfpWMzTXSPkcqYPvkCAzdFD9LpcTNSI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VRViLyAFEzlgDenwxKKJPtn6swJzM5x99r2WJqKX5Dvk1rmEh2nWwsJMc6s+HDIl2Ks3RAEeoQ24Zqe39G06TeIvQf13Ki94nDJNL59JDc9kY87sRWLhUqChnVQ1K6Hia674XqoVuBqlYaWEQjklEntJn+Y1FBX6vd5sll50Ggk= 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=OC5SYPrq; arc=none smtp.client-ip=209.85.221.54 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-wr1-f54.google.com with SMTP id ffacd0b85a97d-3392b12dd21so3902827f8f.0 for ; Tue, 27 Feb 2024 14:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709071852; x=1709676652; 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=56OYpxv+7Sg0fmYSpVc7Gnw4S4WJ/wpnYoYBTxSpZBc=; b=OC5SYPrqqqZD4UmSfaGGBMQVFG1rjlIs96UPR054lE8gAah03JqZwdzmLpXlKF8s6K 7bt6+Nxc0z24xm+XdjR8yC7kiRUy7Gfao1VTTqNF5nLq53Q9KOKq6yzE4ToqkMbkmwoa n5IKMhjD3cKyJMaJj2imaZQBpemqlNKPDVlnwG2V4LNOIm7XnrEWEBhvganSWEaU52dn +4F8/f85/mSh6i61UcC+MyFfa/FTPR0ecCaDMOVR82Dhl391iX66RWd3w0Mu1siJ+N+7 d0/IwrXkqZ3w1iazWcX0pf1DHOtjnu8B3WzK0g6LhlXbDjIvXN7LO3NyYAgkXMxZtQxR C48Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709071852; x=1709676652; 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=56OYpxv+7Sg0fmYSpVc7Gnw4S4WJ/wpnYoYBTxSpZBc=; b=QJgAO3ct2LL7jZ9e+PbKHnXanMMF3LeuGYG44ADX8ZWX9i/pcsfgFmOvUL4R+VZaIp K8I85ycThqvAQhVJndDIaGIzq4iSCwiqQ6b3OkwbhoAZDLeyTKVHcZsqtVB0t3EGQWoN jRWp/qpOcIEUKklOxd33AqVY1w5BOwnm82v2lyjQzC1Tp3/jwhbRCKykcH2HXgc7J4I7 aagCrtH8Z8AsQ47MCNeFeSXEWlljtYIx5k8dJFRpN9uHeh5cC7CihkEzbq+qcPP4xMfk VC9ro1FicC1kw1T9Vsi2OU8i9OVwy1X6Tt1toZ3QVAe6XtiZaY9ajecFnSokKf2emOzL Rvng== X-Forwarded-Encrypted: i=1; AJvYcCWoRwudOBojVKLLN+sLxsNJ2cXWCCkkvyfhVetd2ndJhTtwLxX25KcpU5e0nGmyvHpfFQfQOeh/BgNsjXRjyEwoVUjiD35JfTEExkNk X-Gm-Message-State: AOJu0YyxJV0RuOaN1sTNsYUuWCi29NEG/RTsHIRG3gTUFd1WH9qmOYth 8rw6mVNj0ps68gR1kHB/egNW3UgJmhxWfRDGHetZDeZ3OtmhWiFM X-Received: by 2002:adf:f58d:0:b0:33d:4f6d:de84 with SMTP id f13-20020adff58d000000b0033d4f6dde84mr7765794wro.6.1709071852037; Tue, 27 Feb 2024 14:10:52 -0800 (PST) Received: from YOGA.local ([2a06:c701:736b:f200:73a5:2235:8954:9b7c]) by smtp.gmail.com with ESMTPSA id q2-20020adfab02000000b0033cf5094fcesm12562384wrc.36.2024.02.27.14.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:10:51 -0800 (PST) From: Shahar Avidar To: gregkh@linuxfoundation.org, luca.ceresoli@bootlin.com, benjamin.tissoires@redhat.com, elder@linaro.org, andriy.shevchenko@linux.intel.com, robh@kernel.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] staging: pi433: Remove the unused FREQUENCY define Date: Wed, 28 Feb 2024 00:10:42 +0200 Message-Id: <20240227221043.532938-5-ikobh7@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227221043.532938-1-ikobh7@gmail.com> References: <20240227221043.532938-1-ikobh7@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792091818816208801 X-GMAIL-MSGID: 1792091818816208801 FREQUENCY is not being used, delete its comment. Signed-off-by: Shahar Avidar --- drivers/staging/pi433/rf69.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 52e43a909b03..e63e87fd6cce 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -11,8 +11,6 @@ #include "rf69_enum.h" #include "rf69_registers.h" -/* NOTE: Modifying FREQUENCY value impacts CE certification */ -#define FREQUENCY 433920000 /* Hz */ #define FIFO_SIZE 66 /* bytes */ #define FIFO_THRESHOLD 15 /* bytes */ From patchwork Tue Feb 27 22:10:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahar Avidar X-Patchwork-Id: 207470 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2993729dyb; Tue, 27 Feb 2024 14:12:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXty7HRYtk/WQRcL+4yXAyEDG65Ir92LSgsgHF+pPW5N3YyUMhFnIeriSJuSw/foL75MmfcHT7i8gsxSvSWRbBgz3cU4A== X-Google-Smtp-Source: AGHT+IEHHAts5UOTGn11iUqvyEah2FWm1Y2VTB7BmCEt2o2OGzwWuhcJNnt7kmi4lrCaGZ5YGvtp X-Received: by 2002:a17:90a:7e16:b0:29a:59e5:abfd with SMTP id i22-20020a17090a7e1600b0029a59e5abfdmr8530689pjl.12.1709071949665; Tue, 27 Feb 2024 14:12:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709071949; cv=pass; d=google.com; s=arc-20160816; b=losZdP/+hOt8Y0dh+zWHJ5JSNJIh8zCHpiHmjMs5PEysi3q3sHz9QKkYpiBQfzjAIg edO+CUa2T+VwiXqeTgedkXqcmePiMl/ce7gBXlpemclTxlRWf0l+jkZhHUpQKz6hlmo4 I2+jk/ZnBmjZS9sQH+zQhy7B99GkI+C2RveG/tOhnJ2l42ZRzuTtUxEebcdZTTtwHROz CXe8vdrgsemYx04227PhSreJfdOW8y+fbq3WpPJPccsgQNvw4xM7mMjglrvu5eu1igtJ wB3NoIiHmJSp7UWIzmum4CiBKs3fsVewFhB6d1AaR2JjZmfF/oy/tzridq1oBebZpUdP urFw== 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=j82VF811BuKi5ly+pi6Q+j5FxiMcza1ds+iHobKFqbw=; fh=VUhN+1UiJUZxbp4lr52joM0+BtX5oRtEvh+H8D0cq9s=; b=KUoX7u/f2hosOTe7cS9U2DsQABtBQ6PHCy+tc4gAB6/Vxz3A8qKmKjZZB5oFH0hoRB v+mMlUafCXXeaavgltS0+LdB/qsipJWVEAtDxH/divehjDNgkizLcvsHRbC7xK1O2/QI jPkP9mFzgmgJxpIt/wzU++Lmd3RkMWKbR6DxQtKJdDx49luPgQVay3lgh3I9ta1vcoxU IFDJKWo3e6KPIWh1/2io+rCOH3udbmP1RMa8hjiiCJ8QVpnRWzeOZrfHdYMf5w44YII7 UKx501GY+p0QAlccP+WAsQJ8wcDohWq2DhM1ZWWaqFzChDDFeWG2HNIcTwg+nD/Xc6Gb bVhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kOPsbWgN; 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-84105-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84105-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id em20-20020a17090b015400b00298ddde3f19si69954pjb.59.2024.02.27.14.12.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:12:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84105-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kOPsbWgN; 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-84105-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84105-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7BEA2287D92 for ; Tue, 27 Feb 2024 22:12:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28318158D9E; Tue, 27 Feb 2024 22:10:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kOPsbWgN" Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 0FB041586CF for ; Tue, 27 Feb 2024 22:10:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071856; cv=none; b=I2IKXoxsNgwf5hF+HRvLkidlDAXyqsswF/7GIOTpai23Vb/ygUSilnF1SVM5TVY/iYjhzB8mrZwYKxx3aaHlF2BGmZomYiYD5Sug8DcWMsOGYbcr0jBvyJEhna1IDMexFUWSYx6hJ+mgiSsppKNMEFw8N7qTWTmwXy4F71nY8YQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071856; c=relaxed/simple; bh=6ysg+o0Q0vjgeb3Ub2WmvlFjV3vQ+V2XEH/LWmQtAJ0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=F0jfaKtm4+5JjrtlY93v5vF4hw6p1+U4LxgkOY6UHaJ6DkyV8jEf+DS5g5MLGVMDDzF58uYzqzh698piZU0tead10dt5bYhJrzpLK9GK0QuiHJHRe6PmJTnTdTjY7KZmvru5kgZ0gAkGd5j/grArERIfrRYyKAYi6UOoxiNmGXs= 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=kOPsbWgN; arc=none smtp.client-ip=209.85.221.43 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-wr1-f43.google.com with SMTP id ffacd0b85a97d-33ddd1624beso142650f8f.1 for ; Tue, 27 Feb 2024 14:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709071853; x=1709676653; 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=j82VF811BuKi5ly+pi6Q+j5FxiMcza1ds+iHobKFqbw=; b=kOPsbWgNz0jtWW73qcYDwpPQWEOkaFbRKEmAOgoqIBbew4uDm1snqaWS5JwWv0o5iS FsVIUhxBtmOE2FgyboMOmsRRQu5Gwj2Tl3SqtORMh5MV5XCM4X/UxVw13ASz89hQl9+E ojKCM1JC4ralDCID3XZAxTjax1+kJrjzPT2S7COHS6o1l6ovyzvQA5ezR+Ly7BaMg3Dn IcX6bYTRbCEmGDx+VZ3KIjfIF2MQHmzJ+bpcL7RhaZXkxZ02l7+r59t7YP8MSaF3Hqib avTrXEVB1OkoG8GWMF3427m3mR3O/5qiLqRFjaUf/n2slqk5JdcxyXHMGALSf+My300x rhvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709071853; x=1709676653; 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=j82VF811BuKi5ly+pi6Q+j5FxiMcza1ds+iHobKFqbw=; b=OahggbrmJBAjlpR68jeR1Z3xbEnluiQZZFTU0fnog2QCoEczX9ONIJesYa83tgUdhM liuXEZHyIQzdoidZ7n0iEKrSGlrQjkxAS2e0P78pRbLfdP3Jjg+GxqpK3lSOo5UDqAv9 aqYtYWMvrNYbbnZd5/Dw2iY76g9LC/REm++gluOLyTmjNfCCEMiqmWCV8ugS35kQfdEJ /rSBCxnSjf9FMa0inKQlVu3bhZT0rBo820pqOv3Z6VMo+3wpgXxxQDW2VpG55V7Qjcf2 cEj+l/ETYrGA/mN/dCz0WZaT+awIc8zz/90uQiCsy3QnK297R5T2jT8rytkrUSD9Ahd6 dzrg== X-Forwarded-Encrypted: i=1; AJvYcCXgV3Fxg7R1LN5Og1CjTMDrlV4idG2pclw2Pj9KcQWE/Bb2xXPFku9p9okZeya1n+KVYOWeNjOHr4Jp+HTvJdRexYRoawbzEBppC1z3 X-Gm-Message-State: AOJu0YyQt2jV2C9TB+e+dCdIyf7S3qj9Is3jsrJ3dvadnWg6TixI1LgG ksgQbVt6jUnfbTSVUahyvUj3Ya1M3jFtU/nWKO8G/Rey7IwoW5Pv X-Received: by 2002:a5d:50c5:0:b0:33d:545b:a33e with SMTP id f5-20020a5d50c5000000b0033d545ba33emr521008wrt.13.1709071853541; Tue, 27 Feb 2024 14:10:53 -0800 (PST) Received: from YOGA.local ([2a06:c701:736b:f200:73a5:2235:8954:9b7c]) by smtp.gmail.com with ESMTPSA id q2-20020adfab02000000b0033cf5094fcesm12562384wrc.36.2024.02.27.14.10.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:10:52 -0800 (PST) From: Shahar Avidar To: gregkh@linuxfoundation.org, luca.ceresoli@bootlin.com, benjamin.tissoires@redhat.com, elder@linaro.org, andriy.shevchenko@linux.intel.com, robh@kernel.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] staging: pi433: Move FIFO_THRESHOLD define to source file Date: Wed, 28 Feb 2024 00:10:43 +0200 Message-Id: <20240227221043.532938-6-ikobh7@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227221043.532938-1-ikobh7@gmail.com> References: <20240227221043.532938-1-ikobh7@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792091828855055649 X-GMAIL-MSGID: 1792091828855055649 FIFO_THRESHOLD is only being used in pi433_if.c source files. Signed-off-by: Shahar Avidar --- drivers/staging/pi433/pi433_if.c | 1 + drivers/staging/pi433/rf69.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 0ec3130225db..b6c4917d515e 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -49,6 +49,7 @@ #define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */ #define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */ #define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */ +#define FIFO_THRESHOLD 15 /* bytes */ #define NUM_DIO 2 static dev_t pi433_dev; diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index e63e87fd6cce..76f0f9896a52 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -12,7 +12,6 @@ #include "rf69_registers.h" #define FIFO_SIZE 66 /* bytes */ -#define FIFO_THRESHOLD 15 /* bytes */ u8 rf69_read_reg(struct spi_device *spi, u8 addr); int rf69_get_version(struct spi_device *spi);