Skip to content

Commit 89980d3

Browse files
Yan Zhenbroonie
authored andcommitted
spi: fix typo in the comment
Correctly spelled comments make it easier for the reader to understand the code. Replace 'progrom' with 'program' in the comment & replace 'Recevie' with 'Receive' in the comment & replace 'receieved' with 'received' in the comment & replace 'ajacent' with 'adjacent' in the comment & replace 'trasaction' with 'transaction' in the comment & replace 'pecularity' with 'peculiarity' in the comment & replace 'resiter' with 'register' in the comment & replace 'tansmition' with 'transmission' in the comment & replace 'Deufult' with 'Default' in the comment & replace 'tansfer' with 'transfer' in the comment & replace 'settign' with 'setting' in the comment. Signed-off-by: Yan Zhen <yanzhen@vivo.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Link: https://patch.msgid.link/20240914095213.298256-1-yanzhen@vivo.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 9852d85 commit 89980d3

10 files changed

Lines changed: 11 additions & 11 deletions

drivers/spi/spi-hisi-sfc-v3xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/* Common definition of interrupt bit masks */
4141
#define HISI_SFC_V3XX_INT_MASK_ALL (0x1ff) /* all the masks */
4242
#define HISI_SFC_V3XX_INT_MASK_CPLT BIT(0) /* command execution complete */
43-
#define HISI_SFC_V3XX_INT_MASK_PP_ERR BIT(2) /* page progrom error */
43+
#define HISI_SFC_V3XX_INT_MASK_PP_ERR BIT(2) /* page program error */
4444
#define HISI_SFC_V3XX_INT_MASK_IACCES BIT(5) /* error visiting inaccessible/
4545
* protected address
4646
*/

drivers/spi/spi-lantiq-ssc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
#define LTQ_SPI_FGPO_CLROUTN_S 0
140140

141141
#define LTQ_SPI_RXREQ_RXCNT_M 0xFFFF /* Receive count value */
142-
#define LTQ_SPI_RXCNT_TODO_M 0xFFFF /* Recevie to-do value */
142+
#define LTQ_SPI_RXCNT_TODO_M 0xFFFF /* Receive to-do value */
143143

144144
#define LTQ_SPI_IRNEN_TFI BIT(4) /* TX finished interrupt */
145145
#define LTQ_SPI_IRNEN_F BIT(3) /* Frame end interrupt request */

drivers/spi/spi-mpc52xx-psc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static int mpc52xx_psc_spi_transfer_rxtx(struct spi_device *spi,
107107
struct mpc52xx_psc_spi *mps = spi_controller_get_devdata(spi->controller);
108108
struct mpc52xx_psc __iomem *psc = mps->psc;
109109
struct mpc52xx_psc_fifo __iomem *fifo = mps->fifo;
110-
unsigned rb = 0; /* number of bytes receieved */
110+
unsigned rb = 0; /* number of bytes received */
111111
unsigned sb = 0; /* number of bytes sent */
112112
unsigned char *rx_buf = (unsigned char *)t->rx_buf;
113113
unsigned char *tx_buf = (unsigned char *)t->tx_buf;
@@ -325,7 +325,7 @@ static int mpc52xx_psc_spi_of_probe(struct platform_device *pdev)
325325
if (IS_ERR(mps->psc))
326326
return dev_err_probe(dev, PTR_ERR(mps->psc), "could not ioremap I/O port range\n");
327327

328-
/* On the 5200, fifo regs are immediately ajacent to the psc regs */
328+
/* On the 5200, fifo regs are immediately adjacent to the psc regs */
329329
mps->fifo = ((void __iomem *)mps->psc) + sizeof(struct mpc52xx_psc);
330330

331331
mps->irq = platform_get_irq(pdev, 0);

drivers/spi/spi-pic32-sqi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static irqreturn_t pic32_sqi_isr(int irq, void *dev_id)
226226
if (status & PESQI_PKTCOMP) {
227227
/* mask all interrupts */
228228
enable = 0;
229-
/* complete trasaction */
229+
/* complete transaction */
230230
complete(&sqi->xfer_done);
231231
}
232232

drivers/spi/spi-pl022.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ static int configure_dma(struct pl022 *pl022)
899899
break;
900900
}
901901

902-
/* SPI pecularity: we need to read and write the same width */
902+
/* SPI peculiarity: we need to read and write the same width */
903903
if (rx_conf.src_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED)
904904
rx_conf.src_addr_width = tx_conf.dst_addr_width;
905905
if (tx_conf.dst_addr_width == DMA_SLAVE_BUSWIDTH_UNDEFINED)

drivers/spi/spi-rockchip-sfc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
#define SFC_VER_4 0x4
112112
#define SFC_VER_5 0x5
113113

114-
/* Delay line controller resiter */
114+
/* Delay line controller register */
115115
#define SFC_DLL_CTRL0 0x3C
116116
#define SFC_DLL_CTRL0_SCLK_SMP_DLL BIT(15)
117117
#define SFC_DLL_CTRL0_DLL_MAX_VER4 0xFFU

drivers/spi/spi-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ struct rockchip_spi {
192192
u8 rsd;
193193

194194
bool target_abort;
195-
bool cs_inactive; /* spi target tansmition stop when cs inactive */
195+
bool cs_inactive; /* spi target transmission stop when cs inactive */
196196
bool cs_high_supported; /* native CS supports active-high polarity */
197197

198198
struct spi_transfer *xfer; /* Store xfer temporarily */

drivers/spi/spi-s3c64xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
13531353
pm_runtime_enable(&pdev->dev);
13541354
pm_runtime_get_sync(&pdev->dev);
13551355

1356-
/* Setup Deufult Mode */
1356+
/* Setup Default Mode */
13571357
s3c64xx_spi_hwinit(sdd);
13581358

13591359
spin_lock_init(&sdd->lock);

drivers/spi/spi-sprd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ static int sprd_spi_setup_transfer(struct spi_device *sdev,
728728
if (ret)
729729
return ret;
730730

731-
/* Set tansfer speed and valid bits */
731+
/* Set transfer speed and valid bits */
732732
sprd_spi_set_speed(ss, t->speed_hz);
733733
sprd_spi_set_transfer_bits(ss, bits_per_word);
734734

drivers/spi/spi-tegra20-slink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ static int tegra_slink_start_dma_based_transfer(
542542
if (tspi->is_packed) {
543543
val |= SLINK_PACKED;
544544
tegra_slink_writel(tspi, val, SLINK_DMA_CTL);
545-
/* HW need small delay after settign Packed mode */
545+
/* HW need small delay after setting Packed mode */
546546
udelay(1);
547547
}
548548
tspi->dma_control_reg = val;

0 commit comments

Comments
 (0)