Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfc: s3fwrn5: Remove unused NCI prop commands

Remove the unused NCI prop commands that s3fwrn5 driver doesn't use.

Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Bongsu Jeon and committed by
Jakub Kicinski
e2138e3f 7ec27c9e

-47
-25
drivers/nfc/s3fwrn5/nci.c
··· 23 23 static struct nci_driver_ops s3fwrn5_nci_prop_ops[] = { 24 24 { 25 25 .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, 26 - NCI_PROP_AGAIN), 27 - .rsp = s3fwrn5_nci_prop_rsp, 28 - }, 29 - { 30 - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, 31 - NCI_PROP_GET_RFREG), 32 - .rsp = s3fwrn5_nci_prop_rsp, 33 - }, 34 - { 35 - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, 36 26 NCI_PROP_SET_RFREG), 37 - .rsp = s3fwrn5_nci_prop_rsp, 38 - }, 39 - { 40 - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, 41 - NCI_PROP_GET_RFREG_VER), 42 - .rsp = s3fwrn5_nci_prop_rsp, 43 - }, 44 - { 45 - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, 46 - NCI_PROP_SET_RFREG_VER), 47 27 .rsp = s3fwrn5_nci_prop_rsp, 48 28 }, 49 29 { ··· 39 59 { 40 60 .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, 41 61 NCI_PROP_FW_CFG), 42 - .rsp = s3fwrn5_nci_prop_rsp, 43 - }, 44 - { 45 - .opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, 46 - NCI_PROP_WR_RESET), 47 62 .rsp = s3fwrn5_nci_prop_rsp, 48 63 }, 49 64 };
-22
drivers/nfc/s3fwrn5/nci.h
··· 11 11 12 12 #include "s3fwrn5.h" 13 13 14 - #define NCI_PROP_AGAIN 0x01 15 - 16 - #define NCI_PROP_GET_RFREG 0x21 17 14 #define NCI_PROP_SET_RFREG 0x22 18 15 19 16 struct nci_prop_set_rfreg_cmd { ··· 19 22 }; 20 23 21 24 struct nci_prop_set_rfreg_rsp { 22 - __u8 status; 23 - }; 24 - 25 - #define NCI_PROP_GET_RFREG_VER 0x24 26 - 27 - struct nci_prop_get_rfreg_ver_rsp { 28 - __u8 status; 29 - __u8 data[8]; 30 - }; 31 - 32 - #define NCI_PROP_SET_RFREG_VER 0x25 33 - 34 - struct nci_prop_set_rfreg_ver_cmd { 35 - __u8 data[8]; 36 - }; 37 - 38 - struct nci_prop_set_rfreg_ver_rsp { 39 25 __u8 status; 40 26 }; 41 27 ··· 49 69 struct nci_prop_fw_cfg_rsp { 50 70 __u8 status; 51 71 }; 52 - 53 - #define NCI_PROP_WR_RESET 0x2f 54 72 55 73 void s3fwrn5_nci_get_prop_ops(struct nci_driver_ops **ops, size_t *n); 56 74 int s3fwrn5_nci_rf_configure(struct s3fwrn5_info *info, const char *fw_name);