mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-30 13:00:30 +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
@@ -17,6 +17,7 @@ SVN HEAD
|
||||
Man page i2cdetect.8: Describe the output convention
|
||||
Man page sensors.1: Update (option -c) and clean up
|
||||
Module bmcsensors: Fix several warnings
|
||||
Fix fragile structure initialization
|
||||
Module i2c-i801: Add ICH9 support
|
||||
Module f71805f: Fix the device address decoding (2.6 backport)
|
||||
Module icspll: Delete. It was useless and dangerous.
|
||||
|
||||
@@ -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