Skip to content

Commit c3ac7e3

Browse files
aloktiwaij-intel
authored andcommitted
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 <[email protected]> Reviewed-by: Vadim Pasternak <[email protected]> Reviewed-by: David Thompson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 173bbec commit c3ac7e3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

drivers/platform/mellanox/mlxbf-tmfifo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ static void mlxbf_tmfifo_get_cfg_mac(u8 *mac)
12881288
ether_addr_copy(mac, mlxbf_tmfifo_net_default_mac);
12891289
}
12901290

1291-
/* Set TmFifo thresolds which is used to trigger interrupts. */
1291+
/* Set TmFifo thresholds which is used to trigger interrupts. */
12921292
static void mlxbf_tmfifo_set_threshold(struct mlxbf_tmfifo *fifo)
12931293
{
12941294
u64 ctl;

drivers/platform/mellanox/mlxreg-dpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ static int mlxreg_dpu_config_init(struct mlxreg_dpu *mlxreg_dpu, void *regmap,
483483
mlxreg_dpu->io_data,
484484
sizeof(*mlxreg_dpu->io_data));
485485
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",
487487
data->hpdev.brdinfo->type, data->hpdev.nr,
488488
data->hpdev.brdinfo->addr);
489489
return PTR_ERR(mlxreg_dpu->io_regs);

drivers/platform/mellanox/mlxreg-lc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ enum mlxreg_lc_state {
5757
* @dev: platform device;
5858
* @lock: line card lock;
5959
* @par_regmap: parent device regmap handle;
60-
* @data: pltaform core data;
60+
* @data: platform core data;
6161
* @io_data: register access platform data;
62-
* @led_data: LED platform data ;
62+
* @led_data: LED platform data;
6363
* @mux_data: MUX platform data;
6464
* @led: LED device;
6565
* @io_regs: register access device;
@@ -171,7 +171,7 @@ static int mlxreg_lc_chan[] = {
171171
0x4e, 0x4f
172172
};
173173

174-
/* Defaul mux configuration. */
174+
/* Default mux configuration. */
175175
static struct mlxcpld_mux_plat_data mlxreg_lc_mux_data[] = {
176176
{
177177
.chan_ids = mlxreg_lc_chan,
@@ -181,7 +181,7 @@ static struct mlxcpld_mux_plat_data mlxreg_lc_mux_data[] = {
181181
},
182182
};
183183

184-
/* Defaul mux board info. */
184+
/* Default mux board info. */
185185
static struct i2c_board_info mlxreg_lc_mux_brdinfo = {
186186
I2C_BOARD_INFO("i2c-mux-mlxcpld", 0x32),
187187
};
@@ -758,7 +758,7 @@ mlxreg_lc_config_init(struct mlxreg_lc *mlxreg_lc, void *regmap,
758758
platform_device_register_resndata(dev, "mlxreg-io", data->hpdev.nr, NULL, 0,
759759
mlxreg_lc->io_data, sizeof(*mlxreg_lc->io_data));
760760
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",
762762
data->hpdev.brdinfo->type, data->hpdev.nr,
763763
data->hpdev.brdinfo->addr);
764764
err = PTR_ERR(mlxreg_lc->io_regs);

0 commit comments

Comments
 (0)