Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2127585rwb; Sat, 19 Nov 2022 09:23:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6lHGvHO3Fa0Kp/H7jKY7e3vxwk6tweVQwaO8rbeQusdOC+j56pVGXRV17riUTnJxcjZlr5 X-Received: by 2002:a05:6a00:cd5:b0:56d:7aaa:f1ea with SMTP id b21-20020a056a000cd500b0056d7aaaf1eamr12773144pfv.69.1668878616096; Sat, 19 Nov 2022 09:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668878616; cv=none; d=google.com; s=arc-20160816; b=yUB41/o+TfBgDRKW+5EnITpLWHSKt5kaYMs5Xlhe4nUIAM0ptG55zC15+f1z1Nae4L eWRST1i3znUlOn1hT40AiFEWShVKukf+9yeCcwtOk8s/uOU2cKSr6eQQqJLSiXPI+Isf gY8TTTwVFiTwKWJ8WCq++bWFLViTGLe0UfytosweFRI4ZE+DerD2cFE0jj6I0DGIvnWA Gv9KhrLMwC9nftRd7enlKJ5K12erdJ0ksH9QnGbZvUKQqJvvWIu/aQBIOq6wTF2gFOIF Z1je5DVgOX5eqb95HsSgT/36n830Ql+jG7XDL/vXxerM0GYPtqK53tmUWeot7BOPadtP 0jQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=YCR1kkigxPr8rIMginGfDDotekZbn55xYGn4lYaBaV4=; b=Vjgcjt5UlvdL0TKvlyUKgPakUvW2AmyPTWweK8mHxd9zq3pjo9bGHQ/NeM5EDStg+R EdkAuhtYFGxwXG2Lwt/wAGmAZLAohqh4C0/gy0QBqp9xISJwJK0KP9TqskJd96wXs3XF fx4CcIYM6w4V9nAIfozpte5zVuJmJHIrTBRVMuNk1rCeQGjdVnDRSkmDWch7ArGRQ6pq VMmrbAC9mO/IACM5tjmf30Kjw7lHUlBP/8Ms7z2g9nWLJHrL2i4mt5TRJvTQ4/wTuazI a6akh0qSJqnS5nT05Y+8bg9XZ/H9ck+0V9dsoRoXGL9CvLxNvuq7HAyIoQEJaLSe4Ks3 /zwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=TYkmpQm6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e25-20020a656499000000b0046e9da9ac40si6523345pgv.556.2022.11.19.09.23.23; Sat, 19 Nov 2022 09:23:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=TYkmpQm6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234477AbiKSRLe (ORCPT + 91 others); Sat, 19 Nov 2022 12:11:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiKSRLb (ORCPT ); Sat, 19 Nov 2022 12:11:31 -0500 Received: from msg-2.mailo.com (msg-2.mailo.com [213.182.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 471E9E85 for ; Sat, 19 Nov 2022 09:11:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1668877882; bh=FKEbaY7IyPQFMpBoG5mhguHiFjbHZh8X2ncstYTLPn0=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type; b=TYkmpQm6NGtu87aycupjCmDXfNZKu64JDeqvj2c0vFicANOkhB6byigpTRtd3X/Gr HzUMa+UQyGnMB4XxSLI3V/qyaF6/HQOe6dZyKcuI96ZMoHROBAupfrqTi+ST7JgQKL hzGkKTpmqf0IjSgArjgYvkmgrZ771UfHGfNSyq8Y= Received: by b-2.in.mailobj.net [192.168.90.12] with ESMTP via ip-206.mailobj.net [213.182.55.206] Sat, 19 Nov 2022 18:11:22 +0100 (CET) X-EA-Auth: ni8jdc27RGu78A+owJy87OHmQyFyTnn+3qZB4CS5snT62QN7iRjoo7WeH1t5COwJD/1OxtourPBt3HBrZTRIJeF5UApw/Mpc Date: Sat, 19 Nov 2022 22:41:17 +0530 From: Deepak R Varma To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: drv@mailo.com Subject: [PATCH] staging: pi433: call set_lan_gain for receiver config Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Value for the LNA gain is captured from the user as part of the struct pi433_rx_cfg, however, the corresponding function rf69_set_lna_gain() is never called to set it. Include a call to this function as part of setting up the rx configurations. Signed-off-by: Deepak R Varma --- drivers/staging/pi433/pi433_if.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index d4e06a3929f3..e588a98d7f33 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -176,6 +176,9 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg) if (ret < 0) return ret; ret = rf69_set_antenna_impedance(dev->spi, rx_cfg->antenna_impedance); + if (ret < 0) + return ret; + ret = rf69_set_lna_gain(dev->spi, rx_cfg->lna_gain); if (ret < 0) return ret; ret = rf69_set_rssi_threshold(dev->spi, rx_cfg->rssi_threshold); -- 2.34.1