From patchwork Fri Mar 17 06:50:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 71101 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp186518wrt; Fri, 17 Mar 2023 00:04:05 -0700 (PDT) X-Google-Smtp-Source: AK7set+SzpwsQutZ/LubfsRvpcfjnqDv2CJsXVolnLeTCOnE97ORH16KbXnO38UIRQnsqYlXY84G X-Received: by 2002:a05:6a20:6914:b0:cc:4118:65c4 with SMTP id q20-20020a056a20691400b000cc411865c4mr7375371pzj.5.1679036645062; Fri, 17 Mar 2023 00:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679036645; cv=none; d=google.com; s=arc-20160816; b=OT0vZPLM23TQEt3S0P3As+ki5Hlfk6YBHYcb2DNRxRccOty8qdoDkuia7/AXKEu8Ot ZQcVcycl7l/5zsFxXjeod5kdn3e8B/DpcxGgCB4vlgN8n9i/haJmMUOqoUrRAsOxntfp Cp9q4UTsbfnwGlErKzvU6dd1TboU5Ttr0dLfMpJPRHIA2aQiIppypGtRHwULtEzTuPz+ PCZIWAAa5jBqcVHgZMSDmyzA9J89KmNGpHznY6CzDqnJ2Xpy+OG/q01PHK9Vnn2RakDr QI6H8KR1oq4uf279nmTfk2xVl4y6KmlRIW8p7z26vj3EBCTeZAZZzCd2WtPgTqTYhas1 kupA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nVUZy9GLOTi6aHPZwsHc62dMvLgMytvSk8FMI0v4FVc=; b=OhIp05PaJZ51lWxwIFlNpvwM3z2V60qFsg9Zy+SW6QnyZR62L6cxG7T1wlsURIUmRJ kX4DTS332OtOoJTNz65FRsRfEnjGJqqmuBY7Ct6x2uFUQmOSnvtxKLn2DwQIN1ipdNov EAUJNdrc10kZSY6HsEzbupfxwaycmeFLCEH3SxPqC2WbbZe9HFvZWs3NiHkA4X37L4bA oz7yKapNq0h//2JDwtwEGvnFw5IQS88FMR+tyvXedtQhObxGFBI+vXNIx1QwJkt92oYZ swZgmNC2/Hxocwi4vm5/yHF4+6OwPe4kborg45seIyYVN2NNPM7NUcvU4rG9rjImjacH DbKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YRz7uLre; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a63ed03000000b0050bfa82c246si1505672pgi.875.2023.03.17.00.03.47; Fri, 17 Mar 2023 00:04:05 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20210112 header.b=YRz7uLre; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230205AbjCQGu4 (ORCPT + 99 others); Fri, 17 Mar 2023 02:50:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230189AbjCQGuv (ORCPT ); Fri, 17 Mar 2023 02:50:51 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 373F7BD4D5 for ; Thu, 16 Mar 2023 23:50:50 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id w9so16664459edc.3 for ; Thu, 16 Mar 2023 23:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679035848; 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=nVUZy9GLOTi6aHPZwsHc62dMvLgMytvSk8FMI0v4FVc=; b=YRz7uLreoI4ccx7dGlfy6il3ilTF4CT0w8jUu2k61nNB2LLKfikZVw2khfATBKszwJ N5YM0OoeF+plNiXzoQVxnmxWkjSKDDfNgZ7cBMfk+KLcoMY/8jxHo0DjxAShm/X6lL8x GlYBe4UYpnhtqkmLuOM07XyLfyfJ4MYzbYyfqDNsMErc/TU5dP6GNSyRaAEoGAnZmQDJ ZvdcmXBUGXkSbFeTX82RQi9XVPCrNLRPNzDhupTrDM/ypvXlIL1MMou8bZ3dOb2VCVdo igm9P4GBCiJi22oonKVoW11cS6K8DlUGat4bIukuozN7nIAPNU2e5oq7LCjs+YF+5Y0w rNgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679035848; 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=nVUZy9GLOTi6aHPZwsHc62dMvLgMytvSk8FMI0v4FVc=; b=gDaHfo3df8CD7Y6vqA+vuju/EZQv1Jzd6YeihbVUUB36EEeKjjhhz+oVPuYCfA3YuF xYxIOL/xGQii58SdNAcsxY6ZzflwO9NhSniK7mOYI76EMgCuC4jGSI9uPFJPXNPtFfFE BkNLAdn1iBl+4DtdgwShxzS2wTwuFUdQYZSCVzGnqNXO0+SfastvXYP9ZzXuuGetavZg ZiDJ33bJ0tfraBTfI6qJ57KtRDalzF1kpeIqHgBGiIw5E+Rjabi3teKzdW5R75UApxWN XEpFmx3KWRAhW2MZcowBfTcVRDxeFnBLdoRDzal7QNXe5XBqqI7o172aLEeB+Z07VMzx FLdw== X-Gm-Message-State: AO0yUKUcjKkp2uO014pqS2jYypjpH0s1GJy4yHELOCR6koHBVjhLsZRR memuxDz3n4OlBnNcZC9YGXI= X-Received: by 2002:a05:6402:455:b0:4fd:1fe1:838f with SMTP id p21-20020a056402045500b004fd1fe1838fmr2318136edw.14.1679035848524; Thu, 16 Mar 2023 23:50:48 -0700 (PDT) Received: from localhost.localdomain (ip5f5abbef.dynamic.kabel-deutschland.de. [95.90.187.239]) by smtp.gmail.com with ESMTPSA id z24-20020a17090674d800b009289de993e2sm577438ejl.216.2023.03.16.23.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 23:50:48 -0700 (PDT) From: Michael Straube To: gregkh@linuxfoundation.org Cc: forest@alittletooquiet.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 1/2] staging: vt6655: remove unused bb_power_save_mode_on() function Date: Fri, 17 Mar 2023 07:50:40 +0100 Message-Id: <20230317065041.16635-2-straube.linux@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230317065041.16635-1-straube.linux@gmail.com> References: <20230317065041.16635-1-straube.linux@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TVD_SUBJ_WIPE_DEBT autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760597529169994257?= X-GMAIL-MSGID: =?utf-8?q?1760597529169994257?= The function bb_power_save_mode_on() is not used anywhere, remove it. Signed-off-by: Michael Straube --- drivers/staging/vt6655/baseband.c | 22 ---------------------- drivers/staging/vt6655/baseband.h | 1 - 2 files changed, 23 deletions(-) diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c index 6ce41983dcf4..d7c3e4bec560 100644 --- a/drivers/staging/vt6655/baseband.c +++ b/drivers/staging/vt6655/baseband.c @@ -2171,28 +2171,6 @@ bb_software_reset(struct vnt_private *priv) bb_write_embedded(priv, 0x9C, 0); } -/* - * Description: Baseband Power Save Mode ON - * - * Parameters: - * In: - * iobase - I/O base address - * Out: - * none - * - * Return Value: none - * - */ -void -bb_power_save_mode_on(struct vnt_private *priv) -{ - unsigned char by_org_data; - - bb_read_embedded(priv, 0x0D, &by_org_data); - by_org_data |= BIT(0); - bb_write_embedded(priv, 0x0D, by_org_data); -} - /* * Description: Baseband Power Save Mode OFF * diff --git a/drivers/staging/vt6655/baseband.h b/drivers/staging/vt6655/baseband.h index 15b2802ed727..d1128d050ac5 100644 --- a/drivers/staging/vt6655/baseband.h +++ b/drivers/staging/vt6655/baseband.h @@ -63,7 +63,6 @@ void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data); /* VT3253 Baseband */ bool bb_vt3253_init(struct vnt_private *priv); void bb_software_reset(struct vnt_private *priv); -void bb_power_save_mode_on(struct vnt_private *priv); void bb_power_save_mode_off(struct vnt_private *priv); void bb_set_tx_antenna_mode(struct vnt_private *priv, unsigned char by_antenna_mode); From patchwork Fri Mar 17 06:50:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 71105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp190903wrt; Fri, 17 Mar 2023 00:15:58 -0700 (PDT) X-Google-Smtp-Source: AK7set8vT+FX2KT/6fodnewXLd6GXcH6nBRy9ALYUrYmwMUbXIZt5esiCgaqkF2KJ00LxkkIpUUL X-Received: by 2002:a17:903:41c5:b0:19a:a815:2877 with SMTP id u5-20020a17090341c500b0019aa8152877mr5858367ple.6.1679037358283; Fri, 17 Mar 2023 00:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679037358; cv=none; d=google.com; s=arc-20160816; b=swJWmgHHZ7URfbT8wEyG4CEsiA18uZRXce7aONnZguOvOPCGXdpt7wfRmuUoUHgAFX aTh+tJkt2d0ZuWncP0oLQdfH2R+hAkg2Cn9KMVtiu+ZIxO9onIuajqtF0EhiVzO1tHve 5ugTX/Wz5Ec0FlpxjbBan+fRyOg2RQYJYjXGporO55zb2b89G+2VSwoLoY8ppKafK1AK BDcUTeA3XLz/UuowXH2rZCkPG5dT4JjxKn1ukfudwRp9gqmJ/6ZfyuX1MjqExgTlXfSs y5vTHqqSWGCG9t6QErZbKBhAzPjNRTG7VnUPu2205fVkSEaOJapOakItAweVZ7oXOvLj zYCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vsabCMN0jVXQwz5SLXDNmhQC+MOhJm5LHTpIIA+t6Qo=; b=X61oevRfAam/MHwdgqkGwV+R/20KdLLZwJCrTgWT4wZMrKFHDVV5EvKWpf1mBA9OwG misqGUK3TFl5IOo7Ge5hStAdxcRf4o3Hs8z69smCT2tYjZ2+kWnh0elXEri/PCuwLc5n yRvVWv4zsV3OFPcFy/nRzxmkeEjxq+BxwEtaQvB6IQYSjRQkz1PHXPRDiEGfUfDtK7Sj TJV9Tyodx/F1OGsZYns4k15b+4l/v+dZ97yxVqP4ZP0lbnhqQhn2jlXRtHl7r0GJGaZC OJihsHiiakxommnH2IKrYGOOVhrux/3kORr48KaRRPWSmUIb9nFES62HBz3ggZCm1+M6 dgjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UdS4eGIS; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a17090a2bc800b00235dc16de3asi7298326pje.16.2023.03.17.00.15.45; Fri, 17 Mar 2023 00:15:58 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20210112 header.b=UdS4eGIS; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230220AbjCQGu6 (ORCPT + 99 others); Fri, 17 Mar 2023 02:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjCQGuw (ORCPT ); Fri, 17 Mar 2023 02:50:52 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F441BD4D9 for ; Thu, 16 Mar 2023 23:50:50 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id h8so16557287ede.8 for ; Thu, 16 Mar 2023 23:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679035849; 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=vsabCMN0jVXQwz5SLXDNmhQC+MOhJm5LHTpIIA+t6Qo=; b=UdS4eGISzJzHT/LF8yroXOCbDwHnve5JXf1pWBusOrBy2ytJVdMeHJujkpReG2+1zD J/9kOwHT5dZ01kGEQHbBcJvAUfmRMxR6rty88hiPLkQFHnCbRS9pfeDCaA9gStfeGue2 JQEJo81n160sPj0nwt4KFBMX0jxPUn//V2Kvbx2q7tKQ22AtxfkHBCy+ge5iiyUN/gFf AQKlm+LrDr9Z0Thp895siT3bKQl8nEdnOpdqW0khh0j7QOwE870NLIIbnmUNOC6vHpWh efkCKOgx0Td0IzxEPsD53+GGti271joQKlnxD6i7TLzhTHymvUqcSIFinM6saO3O+l9Q J4Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679035849; 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=vsabCMN0jVXQwz5SLXDNmhQC+MOhJm5LHTpIIA+t6Qo=; b=eXMRDaIEVqPayLBftEgjzzbINBEMy+WZM1GcTC/2gr24p+hNwkCjtxGqjp48NizQEN wqLd+n0ceCAX9DEZ888ncYYgudpMymsS69WcJTBZTmrDog1rVNSCP7XE4YMusE840noj SQFidhSc1YD5zkYpF5LNJDnn6rYxtKtf/CV3XDjkySp+kHSbH257XZhgH8hfyqR48FQS SMQ0819F/I5b5cYnbUhzzx4uXZc58XdDTsxsdQzaTsb1IBtGTQtM7qebU3M0IuF/v2Tb Z9EW1nHc8v3XtG8KGN9z0KM99UGSTbIWYVZZZJWMPhy8KaZ/rSQenrwKYFMTbtBEUOLR Z9mQ== X-Gm-Message-State: AO0yUKVMoqSGqwIzD/5XEwPN4Nn0npUiIzBzn/aJY5EGqy3JCaUaibS3 R26X0zleb0aS/Dta3q78RKo= X-Received: by 2002:a17:906:20c3:b0:927:6e70:e245 with SMTP id c3-20020a17090620c300b009276e70e245mr11785010ejc.63.1679035849007; Thu, 16 Mar 2023 23:50:49 -0700 (PDT) Received: from localhost.localdomain (ip5f5abbef.dynamic.kabel-deutschland.de. [95.90.187.239]) by smtp.gmail.com with ESMTPSA id z24-20020a17090674d800b009289de993e2sm577438ejl.216.2023.03.16.23.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 23:50:48 -0700 (PDT) From: Michael Straube To: gregkh@linuxfoundation.org Cc: forest@alittletooquiet.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 2/2] staging: vt6655: remove unused bb_power_save_mode_off() function Date: Fri, 17 Mar 2023 07:50:41 +0100 Message-Id: <20230317065041.16635-3-straube.linux@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230317065041.16635-1-straube.linux@gmail.com> References: <20230317065041.16635-1-straube.linux@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TVD_SUBJ_WIPE_DEBT autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760598276807905916?= X-GMAIL-MSGID: =?utf-8?q?1760598276807905916?= The function bb_power_save_mode_off() is not used anywhere, remove it. Signed-off-by: Michael Straube --- drivers/staging/vt6655/baseband.c | 22 ---------------------- drivers/staging/vt6655/baseband.h | 1 - 2 files changed, 23 deletions(-) diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c index d7c3e4bec560..0e135af8316b 100644 --- a/drivers/staging/vt6655/baseband.c +++ b/drivers/staging/vt6655/baseband.c @@ -2171,28 +2171,6 @@ bb_software_reset(struct vnt_private *priv) bb_write_embedded(priv, 0x9C, 0); } -/* - * Description: Baseband Power Save Mode OFF - * - * Parameters: - * In: - * iobase - I/O base address - * Out: - * none - * - * Return Value: none - * - */ -void -bb_power_save_mode_off(struct vnt_private *priv) -{ - unsigned char by_org_data; - - bb_read_embedded(priv, 0x0D, &by_org_data); - by_org_data &= ~(BIT(0)); - bb_write_embedded(priv, 0x0D, by_org_data); -} - /* * Description: Set Tx Antenna mode * diff --git a/drivers/staging/vt6655/baseband.h b/drivers/staging/vt6655/baseband.h index d1128d050ac5..e4a02c240a1c 100644 --- a/drivers/staging/vt6655/baseband.h +++ b/drivers/staging/vt6655/baseband.h @@ -63,7 +63,6 @@ void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data); /* VT3253 Baseband */ bool bb_vt3253_init(struct vnt_private *priv); void bb_software_reset(struct vnt_private *priv); -void bb_power_save_mode_off(struct vnt_private *priv); void bb_set_tx_antenna_mode(struct vnt_private *priv, unsigned char by_antenna_mode); void bb_set_rx_antenna_mode(struct vnt_private *priv,