Skip to content

Commit 1ded391

Browse files
mellanoxbmcdavem330
authored andcommitted
mlxsw: minimal: Make structures and variables names shorter
Replace "mlxsw_minimal" by "mlxsw_m" in order to improve code readability. Signed-off-by: Vadim Pasternak <vadimp@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1b1c6c1 commit 1ded391

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

drivers/net/ethernet/mellanox/mlxsw/minimal.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,57 +10,57 @@
1010
#include "core.h"
1111
#include "i2c.h"
1212

13-
static const char mlxsw_minimal_driver_name[] = "mlxsw_minimal";
13+
static const char mlxsw_m_driver_name[] = "mlxsw_minimal";
1414

15-
static const struct mlxsw_config_profile mlxsw_minimal_config_profile;
15+
static const struct mlxsw_config_profile mlxsw_m_config_profile;
1616

17-
static struct mlxsw_driver mlxsw_minimal_driver = {
18-
.kind = mlxsw_minimal_driver_name,
17+
static struct mlxsw_driver mlxsw_m_driver = {
18+
.kind = mlxsw_m_driver_name,
1919
.priv_size = 1,
20-
.profile = &mlxsw_minimal_config_profile,
20+
.profile = &mlxsw_m_config_profile,
2121
};
2222

23-
static const struct i2c_device_id mlxsw_minimal_i2c_id[] = {
23+
static const struct i2c_device_id mlxsw_m_i2c_id[] = {
2424
{ "mlxsw_minimal", 0},
2525
{ },
2626
};
2727

28-
static struct i2c_driver mlxsw_minimal_i2c_driver = {
28+
static struct i2c_driver mlxsw_m_i2c_driver = {
2929
.driver.name = "mlxsw_minimal",
3030
.class = I2C_CLASS_HWMON,
31-
.id_table = mlxsw_minimal_i2c_id,
31+
.id_table = mlxsw_m_i2c_id,
3232
};
3333

34-
static int __init mlxsw_minimal_module_init(void)
34+
static int __init mlxsw_m_module_init(void)
3535
{
3636
int err;
3737

38-
err = mlxsw_core_driver_register(&mlxsw_minimal_driver);
38+
err = mlxsw_core_driver_register(&mlxsw_m_driver);
3939
if (err)
4040
return err;
4141

42-
err = mlxsw_i2c_driver_register(&mlxsw_minimal_i2c_driver);
42+
err = mlxsw_i2c_driver_register(&mlxsw_m_i2c_driver);
4343
if (err)
4444
goto err_i2c_driver_register;
4545

4646
return 0;
4747

4848
err_i2c_driver_register:
49-
mlxsw_core_driver_unregister(&mlxsw_minimal_driver);
49+
mlxsw_core_driver_unregister(&mlxsw_m_driver);
5050

5151
return err;
5252
}
5353

54-
static void __exit mlxsw_minimal_module_exit(void)
54+
static void __exit mlxsw_m_module_exit(void)
5555
{
56-
mlxsw_i2c_driver_unregister(&mlxsw_minimal_i2c_driver);
57-
mlxsw_core_driver_unregister(&mlxsw_minimal_driver);
56+
mlxsw_i2c_driver_unregister(&mlxsw_m_i2c_driver);
57+
mlxsw_core_driver_unregister(&mlxsw_m_driver);
5858
}
5959

60-
module_init(mlxsw_minimal_module_init);
61-
module_exit(mlxsw_minimal_module_exit);
60+
module_init(mlxsw_m_module_init);
61+
module_exit(mlxsw_m_module_exit);
6262

6363
MODULE_LICENSE("Dual BSD/GPL");
6464
MODULE_AUTHOR("Vadim Pasternak <vadimp@mellanox.com>");
6565
MODULE_DESCRIPTION("Mellanox minimal driver");
66-
MODULE_DEVICE_TABLE(i2c, mlxsw_minimal_i2c_id);
66+
MODULE_DEVICE_TABLE(i2c, mlxsw_m_i2c_id);

0 commit comments

Comments
 (0)