• Jean Delvare's avatar
    [PATCH] I2C: fix forced i2c chip drivers have no name · f09513c7
    Jean Delvare authored
    I just noticed that I am doing something wrong in the i2c chip drivers I
    ported to Linux 2.6. If these drivers are forced to a specific chip type
    ("kind" as we call it internally), then the device doesn't have its name
    set (and defaults to an empty string).
    
    Affected drivers: gl518sm, lm83, lm90, w83l785ts.
    
    I could verify the problem on my ADM1032 chip (lm90 driver). I also
    verified that the proposed patch fixes the issue.
    
    You may notice that I fix the problem differently for gl518sm and
    w83l785ts on the one hand, and lm83 and lm90 on the other hand. This is
    because the first two drivers are not expected to support more a single
    chip in the future, while lm90 already does and lm83 could someday (for
    example, support for the LM82 could be added on request).
    f09513c7
w83l785ts.c 9.01 KB