Changeset 4277

Show
Ignore:
Timestamp:
01/02/07 19:41:52 (2 years ago)
Author:
khali
Message:

bmcsensors: Fix fragile structure initialization.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r4276 r4277  
    1818  Man page sensors.1: Update (option -c) and clean up 
    1919  Module bmcsensors: Fix several warnings 
     20                     Fix fragile structure initialization 
    2021  Module i2c-i801: Add ICH9 support 
    2122  Module f71805f: Fix the device address decoding (2.6 backport) 
  • lm-sensors/trunk/kernel/chips/bmcsensors.c

    r4276 r4277  
    8585 
    8686static struct bmcsensors_data bmc_data; 
    87 struct i2c_client bmc_client = { 
    88         "BMC Sensors", 
    89         1,                  /* fake should be 0 */ 
    90         0, 
    91         0, 
    92         NULL,   /* adapter */ 
    93         &bmcsensors_driver, 
    94         & bmc_data, 
    95         0 
     87static struct i2c_client bmc_client = { 
     88        .name           = "BMC Sensors", 
     89        .id             = 1,                  /* fake should be 0 */ 
     90        .driver         = &bmcsensors_driver, 
     91        .data           = &bmc_data, 
    9692}; 
    9793