|
10 | 10 | #include "core.h"
|
11 | 11 | #include "i2c.h"
|
12 | 12 |
|
13 |
| -static const char mlxsw_minimal_driver_name[] = "mlxsw_minimal"; |
| 13 | +static const char mlxsw_m_driver_name[] = "mlxsw_minimal"; |
14 | 14 |
|
15 |
| -static const struct mlxsw_config_profile mlxsw_minimal_config_profile; |
| 15 | +static const struct mlxsw_config_profile mlxsw_m_config_profile; |
16 | 16 |
|
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, |
19 | 19 | .priv_size = 1,
|
20 |
| - .profile = &mlxsw_minimal_config_profile, |
| 20 | + .profile = &mlxsw_m_config_profile, |
21 | 21 | };
|
22 | 22 |
|
23 |
| -static const struct i2c_device_id mlxsw_minimal_i2c_id[] = { |
| 23 | +static const struct i2c_device_id mlxsw_m_i2c_id[] = { |
24 | 24 | { "mlxsw_minimal", 0},
|
25 | 25 | { },
|
26 | 26 | };
|
27 | 27 |
|
28 |
| -static struct i2c_driver mlxsw_minimal_i2c_driver = { |
| 28 | +static struct i2c_driver mlxsw_m_i2c_driver = { |
29 | 29 | .driver.name = "mlxsw_minimal",
|
30 | 30 | .class = I2C_CLASS_HWMON,
|
31 |
| - .id_table = mlxsw_minimal_i2c_id, |
| 31 | + .id_table = mlxsw_m_i2c_id, |
32 | 32 | };
|
33 | 33 |
|
34 |
| -static int __init mlxsw_minimal_module_init(void) |
| 34 | +static int __init mlxsw_m_module_init(void) |
35 | 35 | {
|
36 | 36 | int err;
|
37 | 37 |
|
38 |
| - err = mlxsw_core_driver_register(&mlxsw_minimal_driver); |
| 38 | + err = mlxsw_core_driver_register(&mlxsw_m_driver); |
39 | 39 | if (err)
|
40 | 40 | return err;
|
41 | 41 |
|
42 |
| - err = mlxsw_i2c_driver_register(&mlxsw_minimal_i2c_driver); |
| 42 | + err = mlxsw_i2c_driver_register(&mlxsw_m_i2c_driver); |
43 | 43 | if (err)
|
44 | 44 | goto err_i2c_driver_register;
|
45 | 45 |
|
46 | 46 | return 0;
|
47 | 47 |
|
48 | 48 | err_i2c_driver_register:
|
49 |
| - mlxsw_core_driver_unregister(&mlxsw_minimal_driver); |
| 49 | + mlxsw_core_driver_unregister(&mlxsw_m_driver); |
50 | 50 |
|
51 | 51 | return err;
|
52 | 52 | }
|
53 | 53 |
|
54 |
| -static void __exit mlxsw_minimal_module_exit(void) |
| 54 | +static void __exit mlxsw_m_module_exit(void) |
55 | 55 | {
|
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); |
58 | 58 | }
|
59 | 59 |
|
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); |
62 | 62 |
|
63 | 63 | MODULE_LICENSE("Dual BSD/GPL");
|
64 | 64 | MODULE_AUTHOR("Vadim Pasternak <vadimp@mellanox.com>");
|
65 | 65 | 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