treewide: fix funciton/function typos
Subsystems (21)
PATCH 1/1 treewide: fix funciton/function typos
Also add correct spellings to spelling.txt so checkpatch.pl will check for typos.
Signed-off-by Andrea Fiorani <[email protected]>
--- arch/powerpc/kernel/prom_init_check.sh | 2 +- drivers/bluetooth/btmtksdio.c | 2 +- drivers/bluetooth/btmtkuart.c | 2 +- drivers/bluetooth/btusb.c | 2 +- drivers/extcon/extcon.c | 2 +- drivers/mmc/host/sdhci-pci-o2micro.c | 2 +- drivers/net/ethernet/qlogic/qed/qed_int.h | 2 +- drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h | 2 +- drivers/net/usb/lg-vl600.c | 2 +- drivers/scsi/3w-9xxx.c | 2 +- drivers/scsi/3w-sas.c | 2 +- drivers/scsi/3w-xxxx.c | 2 +- drivers/scsi/lpfc/lpfc_els.c | 2 +- drivers/scsi/snic/snic_fwint.h | 4 ++-- drivers/scsi/snic/snic_scsi.c | 2 +- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- include/net/caif/caif_layer.h | 2 +- kernel/bpf/btf.c | 2 +- net/core/dev_addr_lists.c | 2 +- scripts/spelling.txt | 2 ++ sound/pci/hda/patch_ca0132.c | 2 +- sound/soc/codecs/nau8825.c | 4 ++-- tools/perf/util/dwarf-aux.h | 2 +- 23 files changed, 26 insertions(+), 24 deletions(-)
arch/powerpc/kernel/prom_init_check.sh +1 -1
@@ -67,7 +67,7 @@ do fi done - # ignore register save/restore funcitons + # ignore register save/restore functions case $UNDEF in _restgpr_*|_restgpr0_*|_rest32gpr_*) OK=1
drivers/bluetooth/btmtksdio.c +1 -1
@@ -739,7 +739,7 @@ static int mtk_setup_firmware(struct hci_dev *hdev, const char *fwname) wmt_params.data =NULL ; wmt_params.status =NULL ; -/* Activate funciton the firmware providing to */ +/* Activate function the firmware providing to */ err =mtk_hci_wmt_sync (hdev, &wmt_params);if (err <0 ) {bt_dev_err (hdev,"Failed to send wmt rst (%d)" , err);
drivers/bluetooth/btmtkuart.c +1 -1
@@ -297,7 +297,7 @@ static int mtk_setup_firmware(struct hci_dev *hdev, const char *fwname) wmt_params.data =NULL ; wmt_params.status =NULL ; -/* Activate funciton the firmware providing to */ +/* Activate function the firmware providing to */ err =mtk_hci_wmt_sync (hdev, &wmt_params);if (err <0 ) {bt_dev_err (hdev,"Failed to send wmt rst (%d)" , err);
drivers/bluetooth/btusb.c +1 -1
@@ -2863,7 +2863,7 @@ static int btusb_mtk_setup_firmware(struct hci_dev *hdev, const char *fwname) wmt_params.data =NULL ; wmt_params.status =NULL ; -/* Activate funciton the firmware providing to */ +/* Activate function the firmware providing to */ err =btusb_mtk_hci_wmt_sync (hdev, &wmt_params);if (err <0 ) {bt_dev_err (hdev,"Failed to send wmt rst (%d)" , err);
drivers/extcon/extcon.c +1 -1
@@ -1073,7 +1073,7 @@ EXPORT_SYMBOL_GPL(extcon_dev_free);* do not set the values of "internal data", which are initialized by * this function. * -* Note that before calling this funciton, have to allocate the memory +* Note that before calling this function, have to allocate the memory * of an extcon device by using the extcon_dev_allocate(). And the extcon * dev should include the supported_cable information. *
drivers/mmc/host/sdhci-pci-o2micro.c +1 -1
@@ -711,7 +711,7 @@ int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip)pci_write_config_dword (chip->pdev,O2_SD_PLL_SETTING , scratch_32); -/* Disable UHS1 funciton */ +/* Disable UHS1 function */ ret =pci_read_config_dword (chip->pdev,O2_SD_CAP_REG2 , &scratch_32);if (ret)
drivers/net/ethernet/qlogic/qed/qed_int.h +1 -1
@@ -170,7 +170,7 @@ void qed_int_sp_dpc(unsigned long hwfn_cookie);/** * @brief qed_int_get_num_sbs - get the number of status -* blocks configured for this funciton in the igu. +* blocks configured for this function in the igu. * * @param p_hwfn * @param p_sb_cnt_info
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h +1 -1
@@ -533,7 +533,7 @@ enum qlc_83xx_ext_regs {#define QLC_83XX_MULTI_TENANCY_INFO BIT_29#define QLC_INIT_FW_RESOURCES BIT_31 -/* 83xx funcitons */ +/* 83xx functions */ int qlcnic_83xx_get_fw_version (struct qlcnic_adapter *);int qlcnic_83xx_issue_cmd (struct qlcnic_adapter *,struct qlcnic_cmd_args *);int qlcnic_83xx_setup_intr (struct qlcnic_adapter *);
drivers/net/usb/lg-vl600.c +1 -1
@@ -31,7 +31,7 @@* Windows/Mac drivers do send a couple of such frames to the device * during initialisation, with protocol set to 0x0906 or 0x0b06 and (what * seems to be) a flag in the .dummy_flags. This doesn't seem necessary -* for modem operation but can possibly be used for GPS or other funcitons. +* for modem operation but can possibly be used for GPS or other functions. */ struct vl600_frame_hdr {
drivers/scsi/3w-9xxx.c +1 -1
@@ -1694,7 +1694,7 @@ static int twa_reset_sequence(TW_Device_Extension *tw_dev, int soft_reset)return retval; }/* End twa_reset_sequence() */ -/* This funciton returns unit geometry in cylinders/heads/sectors */ +/* This function returns unit geometry in cylinders/heads/sectors */ static int twa_scsi_biosparam (struct scsi_device *sdev,struct block_device *bdev,sector_t capacity,int geom[]) {int heads, sectors, cylinders;
drivers/scsi/3w-sas.c +1 -1
@@ -1404,7 +1404,7 @@ static int twl_reset_device_extension(TW_Device_Extension *tw_dev, int ioctl_resreturn retval; }/* End twl_reset_device_extension() */ -/* This funciton returns unit geometry in cylinders/heads/sectors */ +/* This function returns unit geometry in cylinders/heads/sectors */ static int twl_scsi_biosparam (struct scsi_device *sdev,struct block_device *bdev,sector_t capacity,int geom[]) {int heads, sectors;
drivers/scsi/3w-xxxx.c +1 -1
@@ -1337,7 +1337,7 @@ static int tw_reset_device_extension(TW_Device_Extension *tw_dev)return 0 ; }/* End tw_reset_device_extension() */ -/* This funciton returns unit geometry in cylinders/heads/sectors */ +/* This function returns unit geometry in cylinders/heads/sectors */ static int tw_scsi_biosparam (struct scsi_device *sdev,struct block_device *bdev,sector_t capacity,int geom[]) {
drivers/scsi/lpfc/lpfc_els.c +1 -1
@@ -7854,7 +7854,7 @@ lpfc_els_rcv_fan(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb, }/** -* lpfc_els_timeout - Handler funciton to the els timer +* lpfc_els_timeout - Handler function to the els timer * @ptr: holder for the timer function associated data. * * This routine is invoked by the ELS timer after timeout. It posts the ELS
drivers/scsi/snic/snic_fwint.h +2 -2
@@ -109,7 +109,7 @@ struct snic_io_hdr {u16 resvd; }; -/* auxillary funciton for encoding the snic_io_hdr */ +/* auxillary function for encoding the snic_io_hdr */ static inline void snic_io_hdr_enc (struct snic_io_hdr *hdr,u8 typ,u8 status,u32 id,u32 hid,u16 sg_cnt,ulong ctx)
@@ -124,7 +124,7 @@ snic_io_hdr_enc(struct snic_io_hdr *hdr, u8 typ, u8 status, u32 id, u32 hid, hdr->flags =0 ; } -/* auxillary funciton for decoding the snic_io_hdr */ +/* auxillary function for decoding the snic_io_hdr */ static inline void snic_io_hdr_dec (struct snic_io_hdr *hdr,u8 *typ,u8 *stat,u32 *cmnd_id,u32 *hid,ulong *ctx)
drivers/scsi/snic/snic_scsi.c +1 -1
@@ -2098,7 +2098,7 @@ snic_send_dr_and_wait(struct snic *snic, struct scsi_cmnd *sc) }/* -* auxillary funciton to check lun reset op is supported or not +* auxillary function to check lun reset op is supported or not * Not supported if returns 0 */ static int
drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c +1 -1
@@ -1016,7 +1016,7 @@ void HTOnAssocRsp(struct ieee80211_device *ieee)* * (1) MPInitialization Phase * * (2) Receiving of Deauthentication from AP */ -// TODO: Should this funciton be called when receiving of Disassociation? +// TODO: Should this function be called when receiving of Disassociation? void HTInitializeHTInfo (struct ieee80211_device *ieee) {PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
include/net/caif/caif_layer.h +1 -1
@@ -118,7 +118,7 @@ enum caif_direction {* @dn: Pointer down to the layer below. * @node: List node used when layer participate in a list. * @receive: Packet receive function. -* @transmit: Packet transmit funciton. +* @transmit: Packet transmit function. * @ctrlcmd: Used for control signalling upwards in the stack. * @modemcmd: Used for control signaling downwards in the stack. * @id: The identity of this layer
kernel/bpf/btf.c +1 -1
@@ -2600,7 +2600,7 @@ static struct btf_kind_operations func_proto_ops = {* BTF_KIND_FUNC_PROTO cannot be directly referred by * a struct's member. * -* It should be a funciton pointer instead. +* It should be a function pointer instead. * (i.e. struct's member -> BTF_KIND_PTR -> BTF_KIND_FUNC_PROTO) * * Hence, there is no btf_func_check_member().
net/core/dev_addr_lists.c +1 -1
@@ -228,7 +228,7 @@ EXPORT_SYMBOL(__hw_addr_unsync);* @sync: function to call if address should be added * @unsync: function to call if address should be removed * -* This funciton is intended to be called from the ndo_set_rx_mode +* This function is intended to be called from the ndo_set_rx_mode * function of devices that require explicit address add/remove * notifications. The unsync function may be NULL in which case * the addresses requiring removal will simply be removed without
scripts/spelling.txt +2 -0
@@ -621,6 +621,8 @@ fuctions||functions fullill||fulfill funcation||function funcion||function +funciton||function +funcitons||functions functionallity||functionality functionaly||functionally functionnality||functionality
sound/pci/hda/patch_ca0132.c +1 -1
@@ -4287,7 +4287,7 @@ static void ca0132_alt_select_out_quirk_handler(struct hda_codec *codec) }/* -* This function behaves similarly to the ca0132_select_out funciton above, +* This function behaves similarly to the ca0132_select_out function above, * except with a few differences. It adds the ability to select the current * output with an enumerated control "output source" if the auto detect * mute switch is set to off. If the auto detect mute switch is enabled, it
sound/soc/codecs/nau8825.c +2 -2
@@ -1968,7 +1968,7 @@ static void nau8825_component_remove(struct snd_soc_component *component) {struct nau8825 *nau8825 =snd_soc_component_get_drvdata (component); -/* Cancel and reset cross tak suppresstion detection funciton */ +/* Cancel and reset cross tak suppresstion detection function */ nau8825_xtalk_cancel (nau8825); }
@@ -2366,7 +2366,7 @@ static int nau8825_set_bias_level(struct snd_soc_component *component,/* ground HPL/HPR, MICGRND1/2 */ regmap_update_bits (nau8825->regmap,NAU8825_REG_HSD_CTRL ,0xf ,0xf ); -/* Cancel and reset cross talk detection funciton */ +/* Cancel and reset cross talk detection function */ nau8825_xtalk_cancel (nau8825);/* Turn off all interruptions before system shutdown. Keep the * interruption quiet before resume setup completes.
tools/perf/util/dwarf-aux.h +1 -1
@@ -22,7 +22,7 @@ const char *cu_get_comp_dir(Dwarf_Die *cu_die);int cu_find_lineinfo (Dwarf_Die *cudie,unsigned long addr,const char **fname,int *lineno); -/* Walk on funcitons at given address */ +/* Walk on functions at given address */ int cu_walk_functions_at (Dwarf_Die *cu_die,Dwarf_Addr addr,int (*callback)(Dwarf_Die *,void *),void *data);
Signature · 1 line
2.24.0