Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3146173pxu; Mon, 14 Dec 2020 23:00:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzohHmJBoHxFrFshKgoMBQbBMj68fzFXCN91CkJeLZ7hhGkejdNBdo6wECUwk81VNTM4z6W X-Received: by 2002:aa7:c151:: with SMTP id r17mr24689267edp.106.1608015635964; Mon, 14 Dec 2020 23:00:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608015635; cv=none; d=google.com; s=arc-20160816; b=evrCunouLrwjLN7xRhmnQ4yjRkolT9QjzpY68CWgiD0M/xO6JvHJ6jJ9PiXa0ApRCZ pxbXjLjSSXWdU0rnoAuA++peIvWYZJWNOfjzeYOQrbJyl8JFHwHlNnsrHHa2L+2w1CSa LbOFOoDN6qbNMleUuXNnV70niA9LtUxkJDplzGytwKF9ez2zaZ6Xll2cfN/MaE28FVe1 GLxaidtka0AAYNSvoFVVgq4harEZABMAvO4eQg4xu4BoRBm1LVNs39PQDJkMLZ9jfhH4 Wt0ktZ035yrTSpQMGPbmiSP9ULacb6E1LDPloZ/the4ewiBUKIXEZGxA+OIfavMiR5Pe /5tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=29XGAclPGmuftpF/yRuuyN4mHi9SUrsaBzPMlpIbVk4=; b=ZYxeRIkFn3ZwlLIzkNV3kbx/O20tL0kdC0xBb2VRdhgAhLSIu/HnIPeql9/3OlbKxP mNXgqFh7ccISlZl3NyVDWk4pll9X/SXVLFfwpEb4WZZnq756tjPTwr50CemRiq3B0/G7 JlIrzg2nAkkie+SFOBRv836YDIhZLnkuQvK6M0LP6PZnyYk6qJn2hdsJmsHstAI4mQ7H 2q1hcXjtlk4cHKlvVcCUCWq0er20v8V6UfRzGjYjgG5S2uM7w3Iu7EXlpZNZqbVLPnAM jwdVfRkv/AhjhrYtP2BbsrFKTlUzWdKaturYcv/tLI+/tRRL20ezqwsvTEijPKOWFc+f 9aXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y0sWTMz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si445345eja.541.2020.12.14.23.00.12; Mon, 14 Dec 2020 23:00:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y0sWTMz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726760AbgLOGz1 (ORCPT + 99 others); Tue, 15 Dec 2020 01:55:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbgLOGzI (ORCPT ); Tue, 15 Dec 2020 01:55:08 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E756EC0617A7; Mon, 14 Dec 2020 22:54:42 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id c79so13908284pfc.2; Mon, 14 Dec 2020 22:54:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=29XGAclPGmuftpF/yRuuyN4mHi9SUrsaBzPMlpIbVk4=; b=Y0sWTMz3GtOW+SmGW4/kBQJooG9l5zU2ce4DP/GKIYB+vbXPrAH41sdsKeo8StG2eX D9aMgLppBy3WnWpz3ZPZ/sCD6cu5FNjJJIriBodjw2Fg9XZRKywOKgPF9/Y8ksiEsBtC Fb8AftFmxDA/c66vElS+bcBszXqyyh7YLHIxQdsnJoTwb6AgCK7C6Kk8ecJo0V0uuYbb MTaMLK3zo9/Z5ndLVpk/JcRcww+cIR5WKh9wZolHRjA2ezytLPfkeZ1iiO60x4T5ODlb c3oW5ZqQftlnbrcTpA4cTS1m+ufokdEDI6s05q6dyI9AavCbRV7blRHIVecmIdgNpZTq Fi4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=29XGAclPGmuftpF/yRuuyN4mHi9SUrsaBzPMlpIbVk4=; b=MSr4kVDxnPHUtSXJpSRSxr8CSOKuy7Flk9jf/gLniRqcNjvJmCN7Ao4IMGECKlECsI nSQQSPB5Ukvw07L169Sg5Y/B0uTgcl4C+tvm3FmFQ89pXWXvIEAea1gynT2rdefvk5+2 67GfIVm5KtSAEdNuAeCa6zyOH1OUcmDJ2bs6InqBKMuW53mVwfxyhHM4OGmtJGuQGKPl Aob5mBlvY7sqwakUVhsDZRwVaFq25Hyrg5StJ2X2eQFf1IR2l534VQJ4KGN0mB3XWCmC AQkazV/dRBW04N3Ahk+Q2P3/FxxdwlkndWB5CENJF5JD8TkkuVvnpvHbTBChsqfnS1Eh dRhw== X-Gm-Message-State: AOAM531hsDl27q1ieXWfhYvHXTXS5mmxL85tDO6sgq3XZ/eVzdCqBkgP bqTvYIxvOenrRwGnj/iBfOU= X-Received: by 2002:a63:d542:: with SMTP id v2mr27601912pgi.250.1608015282364; Mon, 14 Dec 2020 22:54:42 -0800 (PST) Received: from localhost.localdomain ([182.226.226.37]) by smtp.googlemail.com with ESMTPSA id na6sm19124134pjb.12.2020.12.14.22.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 22:54:41 -0800 (PST) From: Bongsu Jeon X-Google-Original-From: Bongsu Jeon To: krzk@kernel.org Cc: linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bongsu Jeon Subject: [PATCH v2 net-next 2/2] nfc: s3fwrn5: Remove unused NCI prop commands Date: Tue, 15 Dec 2020 15:54:01 +0900 Message-Id: <20201215065401.3220-3-bongsu.jeon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215065401.3220-1-bongsu.jeon@samsung.com> References: <20201215065401.3220-1-bongsu.jeon@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bongsu Jeon Remove the unused NCI prop commands that s3fwrn5 driver doesn't use. Signed-off-by: Bongsu Jeon --- drivers/nfc/s3fwrn5/nci.c | 25 ------------------------- drivers/nfc/s3fwrn5/nci.h | 22 ---------------------- 2 files changed, 47 deletions(-) diff --git a/drivers/nfc/s3fwrn5/nci.c b/drivers/nfc/s3fwrn5/nci.c index 103bf5c92bdc..f042d3eaf8f6 100644 --- a/drivers/nfc/s3fwrn5/nci.c +++ b/drivers/nfc/s3fwrn5/nci.c @@ -21,31 +21,11 @@ static int s3fwrn5_nci_prop_rsp(struct nci_dev *ndev, struct sk_buff *skb) } static struct nci_driver_ops s3fwrn5_nci_prop_ops[] = { - { - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, - NCI_PROP_AGAIN), - .rsp = s3fwrn5_nci_prop_rsp, - }, - { - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, - NCI_PROP_GET_RFREG), - .rsp = s3fwrn5_nci_prop_rsp, - }, { .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, NCI_PROP_SET_RFREG), .rsp = s3fwrn5_nci_prop_rsp, }, - { - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, - NCI_PROP_GET_RFREG_VER), - .rsp = s3fwrn5_nci_prop_rsp, - }, - { - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, - NCI_PROP_SET_RFREG_VER), - .rsp = s3fwrn5_nci_prop_rsp, - }, { .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, NCI_PROP_START_RFREG), @@ -61,11 +41,6 @@ static struct nci_driver_ops s3fwrn5_nci_prop_ops[] = { NCI_PROP_FW_CFG), .rsp = s3fwrn5_nci_prop_rsp, }, - { - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, - NCI_PROP_WR_RESET), - .rsp = s3fwrn5_nci_prop_rsp, - }, }; void s3fwrn5_nci_get_prop_ops(struct nci_driver_ops **ops, size_t *n) diff --git a/drivers/nfc/s3fwrn5/nci.h b/drivers/nfc/s3fwrn5/nci.h index 23c0b28f247a..a80f0fb082a8 100644 --- a/drivers/nfc/s3fwrn5/nci.h +++ b/drivers/nfc/s3fwrn5/nci.h @@ -11,9 +11,6 @@ #include "s3fwrn5.h" -#define NCI_PROP_AGAIN 0x01 - -#define NCI_PROP_GET_RFREG 0x21 #define NCI_PROP_SET_RFREG 0x22 struct nci_prop_set_rfreg_cmd { @@ -25,23 +22,6 @@ struct nci_prop_set_rfreg_rsp { __u8 status; }; -#define NCI_PROP_GET_RFREG_VER 0x24 - -struct nci_prop_get_rfreg_ver_rsp { - __u8 status; - __u8 data[8]; -}; - -#define NCI_PROP_SET_RFREG_VER 0x25 - -struct nci_prop_set_rfreg_ver_cmd { - __u8 data[8]; -}; - -struct nci_prop_set_rfreg_ver_rsp { - __u8 status; -}; - #define NCI_PROP_START_RFREG 0x26 struct nci_prop_start_rfreg_rsp { @@ -70,8 +50,6 @@ struct nci_prop_fw_cfg_rsp { __u8 status; }; -#define NCI_PROP_WR_RESET 0x2f - void s3fwrn5_nci_get_prop_ops(struct nci_driver_ops **ops, size_t *n); int s3fwrn5_nci_rf_configure(struct s3fwrn5_info *info, const char *fw_name); -- 2.17.1