From patchwork Tue Feb 27 22:10:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahar Avidar X-Patchwork-Id: 21056 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2993238dyb; Tue, 27 Feb 2024 14:11:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWstXzbWCCn7XeTtxpwg0wZ9+H+BSO1lqpJ/ijQ6bXhcPLket0VaOdZUZjie9/fJHH/5rCwxrQa9wvX0USLk9mMmlnMcg== X-Google-Smtp-Source: AGHT+IGRac0bPUE0fbxahrXhk4vMAuy/Kw/5FncyLvXCmFW3qJf8F9rXS0mi+LttnilucwzXW7SZ X-Received: by 2002:a05:6512:4005:b0:512:b3f8:81d2 with SMTP id br5-20020a056512400500b00512b3f881d2mr9075362lfb.12.1709071876693; Tue, 27 Feb 2024 14:11:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709071876; cv=pass; d=google.com; s=arc-20160816; b=hXmxyjTIHmI/D00pMDSi0p9UrbDbYqYgryhWFVdJ5OU0H0uEIEqOOg/uqO3c+5aZ5E Kb2ljJdgJMy2aEsoj1E2Q8lvNW9WW+5cp+ky7s5pTVT7oLhdjM/cHBOA6/OrT1C3l4p4 w8IxPDOgP8Cy/x1uaprFXiokwSrVh+i9QbTlhEbo4+Kh9s3T/qIidxdo0fYfdY0qSB+2 Rm/zPnq2fmW0YpLtC0vvp7Fbs6rzg1AdvVLHbouTawaTGD5FHetvlM29vA48DizGPGss lqHAmSA8e4dxZ3x3eo5ZC9SZ6nVpzud1CVg4RBMOX9iPLK5ucjb/r+q6lHQPelKiO3zG ea0Q== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=MgkeChhdzdsl3VVE43LHMpQmdoDgIDk5tOvZY9oXyW8=; fh=O9QWFa4yxaVBptSCrLHgGxqIw3h4EI8M/0fhxYaDPeg=; b=pJuEslCaLdcxScpy+Qf+mZmeANuZ074hEyW97Wvt0QRNuSAw7CuTMl+ksN7jPTh7Xv +7BPIkrQ1laBSF98KzChTwfzUnmetm7MCMhVxAsWpm26k/xlZHE7VyU02JIt1LQ5ND68 x+331iRwhGkPEd2LbgUk9OIjDftfbrwwJbVNgHTGntum4qkvDkunjaA5cS2OqKdLvgjD AR+fFZ28blmCXUK8CDgYNe+W4CO7Al7zsCqqlFtKXHU/75L1+jpx3MvNjBSbbpA6Qzh7 ilGqy6cS/ODmvDnj4CAdXZdrGSqxa4owgTz6yTFKRKKyGFib0ra0Z2pvGyyKq7nGEPtV C3sQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fTTFApCl; 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-84100-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84100-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 v20-20020aa7dbd4000000b005662a20fc96si1078573edt.190.2024.02.27.14.11.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:11:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84100-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=fTTFApCl; 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-84100-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84100-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 4D7D81F22728 for ; Tue, 27 Feb 2024 22:11:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3A4715531D; Tue, 27 Feb 2024 22:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fTTFApCl" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 B0C0C150981 for ; Tue, 27 Feb 2024 22:10:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071849; cv=none; b=KJJABNF9WzzE+ylR5dqg201C65iglwntkChUGSGi84yOZpBt1A2/rq2+s82bMUWrUXPuEevqlaJp7oNYHGynuVMfnLfIZulZD+/CnS94KCA3KaPnCYa7eEVQxOuG2SxkuNIjDbVLGu9oUi+JG/NUr91neKvKsM0L0AFny0I47EM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071849; c=relaxed/simple; bh=IdCiQBJhitT9Oq1nzunZ0J4RNw5mODISj+FFI6ItdDA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=G1hIAHH/rOblV4JEcWAlUPThZULtTKgWbq3IEXWSD5g5kC2nSTzaOSbQXvveu8dbcPs/RwgTW/i9yEgczWaJn+dEntCzaVZ6DFlzYtPDl1ZaxFFtI7Ym0ALd8rzYW/OEvpVrwlfrBsq5SACYDQk6RPEbwfc6AhWWwtufS8cKirY= 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=fTTFApCl; arc=none smtp.client-ip=209.85.128.49 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-wm1-f49.google.com with SMTP id 5b1f17b1804b1-412b272799aso1794995e9.3 for ; Tue, 27 Feb 2024 14:10:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709071846; x=1709676646; 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=MgkeChhdzdsl3VVE43LHMpQmdoDgIDk5tOvZY9oXyW8=; b=fTTFApCln2O7WQ33wHJwI2p0NjLBzXIf94iHQbJgki7vklsfKz/DUb844h9Mm7QVnN yL/eaXAV/zDP8LiUTW5I+9KcsJ8S17XABvOko2Q89vpqLVYhlUUCclbZZaKcmhtz+aHl 8UukSKq+h4WtcCVN3yjzU/9zobvSV8ge/dJtSkyz1RWfVterJgLGJG2VhfjkxiD4K8A/ /0jfn/1a9pW8wHluGAegrmssRorfWwTKrI1XTaAkfZxvWGRHgpZZYVmFDiG/2EG3TisT tB3oQF1/ezOfa7jEuPzqEwH7MdXu3KAY2JQsjs7W1hKOD6YwFefmaVVJchW/U3FRbLNi 1yzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709071846; x=1709676646; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MgkeChhdzdsl3VVE43LHMpQmdoDgIDk5tOvZY9oXyW8=; b=Wnw3X6GxiTcyTBCWuVHQv7RmTWfDUx3LoVNrbn+zYflIXpuOyjFdIuNothBASRLsjX bQ8hAdDk0ySZqNd3zBXu/AW2mBVBUd3Crtp8NOut4zNw4ozktirECgp/ovagaqUmubaE puV09bupymJiM4PHJ/VWWREQrKhb7D02j/tWSUVA1ulaxdz2QszRFxJZ4zPuSEwkv6ze IW+UNi2+eKQoX0RXVP14PMIX4/ZpsoyTzziQ7Z80PIoBkZrT85UubEtCrCMUzbsIcdCj i0rZBrzRmKGmXyubvri/2Ukf6O8HgJybiK4Ibml/AB6p72qumS8e98u0jhyzubQn8wpr JOGw== X-Forwarded-Encrypted: i=1; AJvYcCVc1yQdL2Y5RmUFbqJXtWWwvaQukJ6Fg/WSgic1/gtsipVUJCdNDdu7udIxm5W2H84m04jp60DrfM0TdHyw+whmmrB8dtB2SstXh5HU X-Gm-Message-State: AOJu0Yy1Yr/9sZzz/iUJ9VYk7rg+cTLV4iwHWxX7CQpJ8+vvRpDWuCwn j8dQS4XPsy/ZHtV0w4iHvPfUMmoj4s2ZHsyVOzu8l3QiEwZUJRsg X-Received: by 2002:adf:ce83:0:b0:33d:27cf:6208 with SMTP id r3-20020adfce83000000b0033d27cf6208mr8420087wrn.7.1709071846024; Tue, 27 Feb 2024 14:10:46 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:10:45 -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 0/5] Fix defines in rf69.h Date: Wed, 28 Feb 2024 00:10:38 +0200 Message-Id: <20240227221043.532938-1-ikobh7@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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792091752479349695 X-GMAIL-MSGID: 1792091752479349695 This patchset fixes several misuses of the define statement in rf69.h. Duplicted defines. Define in header instead of source file. Unused define. Using units.h macro to define frequency. v2->v1: - Fix grammer in commit messages. - Use units.h macro to define frequency. - Reorder patches to ensure no conflicts. Shahar Avidar (5): staging: pi433: Remove a duplicated FIFO_SIZE define staging: pi433: Remove a duplicated F_OSC define staging: pi433: Redefine F_OSC using units.h macro staging: pi433: Remove the unused FREQUENCY define staging: pi433: Move FIFO_THRESHOLD define to source file drivers/staging/pi433/pi433_if.c | 1 + drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69.h | 4 ---- 3 files changed, 3 insertions(+), 6 deletions(-) base-commit: 455c5e12a3b7d08c2ab47b7dd54944901c69cdcd