mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
bmcsensors: Fix fragile structure initialization.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4277 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
4a82f3e86c
commit
e0dfabe9f2
2 files changed
+6
-9
No files matched your search
@@ -84,15 +84,11 @@ static struct i2c_driver bmcsensors_driver = {
|
||||
};
|
||||
|
||||
static struct bmcsensors_data bmc_data;
|
||||
struct i2c_client bmc_client = {
|
||||
"BMC Sensors",
|
||||
1, /* fake should be 0 */
|
||||
0,
|
||||
0,
|
||||
NULL, /* adapter */
|
||||
&bmcsensors_driver,
|
||||
& bmc_data,
|
||||
0
|
||||
static struct i2c_client bmc_client = {
|
||||
.name = "BMC Sensors",
|
||||
.id = 1, /* fake should be 0 */
|
||||
.driver = &bmcsensors_driver,
|
||||
.data = &bmc_data,
|
||||
};
|
||||
|
||||
static int bmcsensors_initialized;
|
||||
|
||||
Reference in new issue
Block a user