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

Configure Feed

Select the types of activity you want to include in your feed.

platform/mellanox: Fix spelling and comment clarity in Mellanox drivers

This commit corrects several minor typographical errors in comments
and error messages across multiple Mellanox platform driver.
Fixed spelling of "thresholds", "region", "platform", "default",
and removed redundant spaces in comment strings and error logs.

These changes are cosmetic and do not affect runtime behavior.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: David Thompson <davthompson@nvidia.com>
Link: https://lore.kernel.org/r/20250622072921.4111552-1-alok.a.tiwari@oracle.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Alok Tiwari and committed by
Ilpo Järvinen
c3ac7e30 173bbec6

+7 -7
+1 -1
drivers/platform/mellanox/mlxbf-tmfifo.c
··· 1288 1288 ether_addr_copy(mac, mlxbf_tmfifo_net_default_mac); 1289 1289 } 1290 1290 1291 - /* Set TmFifo thresolds which is used to trigger interrupts. */ 1291 + /* Set TmFifo thresholds which is used to trigger interrupts. */ 1292 1292 static void mlxbf_tmfifo_set_threshold(struct mlxbf_tmfifo *fifo) 1293 1293 { 1294 1294 u64 ctl;
+1 -1
drivers/platform/mellanox/mlxreg-dpu.c
··· 483 483 mlxreg_dpu->io_data, 484 484 sizeof(*mlxreg_dpu->io_data)); 485 485 if (IS_ERR(mlxreg_dpu->io_regs)) { 486 - dev_err(dev, "Failed to create regio for client %s at bus %d at addr 0x%02x\n", 486 + dev_err(dev, "Failed to create region for client %s at bus %d at addr 0x%02x\n", 487 487 data->hpdev.brdinfo->type, data->hpdev.nr, 488 488 data->hpdev.brdinfo->addr); 489 489 return PTR_ERR(mlxreg_dpu->io_regs);
+5 -5
drivers/platform/mellanox/mlxreg-lc.c
··· 57 57 * @dev: platform device; 58 58 * @lock: line card lock; 59 59 * @par_regmap: parent device regmap handle; 60 - * @data: pltaform core data; 60 + * @data: platform core data; 61 61 * @io_data: register access platform data; 62 - * @led_data: LED platform data ; 62 + * @led_data: LED platform data; 63 63 * @mux_data: MUX platform data; 64 64 * @led: LED device; 65 65 * @io_regs: register access device; ··· 171 171 0x4e, 0x4f 172 172 }; 173 173 174 - /* Defaul mux configuration. */ 174 + /* Default mux configuration. */ 175 175 static struct mlxcpld_mux_plat_data mlxreg_lc_mux_data[] = { 176 176 { 177 177 .chan_ids = mlxreg_lc_chan, ··· 181 181 }, 182 182 }; 183 183 184 - /* Defaul mux board info. */ 184 + /* Default mux board info. */ 185 185 static struct i2c_board_info mlxreg_lc_mux_brdinfo = { 186 186 I2C_BOARD_INFO("i2c-mux-mlxcpld", 0x32), 187 187 }; ··· 758 758 platform_device_register_resndata(dev, "mlxreg-io", data->hpdev.nr, NULL, 0, 759 759 mlxreg_lc->io_data, sizeof(*mlxreg_lc->io_data)); 760 760 if (IS_ERR(mlxreg_lc->io_regs)) { 761 - dev_err(dev, "Failed to create regio for client %s at bus %d at addr 0x%02x\n", 761 + dev_err(dev, "Failed to create region for client %s at bus %d at addr 0x%02x\n", 762 762 data->hpdev.brdinfo->type, data->hpdev.nr, 763 763 data->hpdev.brdinfo->addr); 764 764 err = PTR_ERR(mlxreg_lc->io_regs);