Re: clean up and warnings patch for 2.6.12-rc4-mm1 i2c-chip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jean
with module w83627hf  i found useful due  detection return -ENODEV
because I can see in commandline if it's some thing wrong. If it's not correct, there is a bug 
in the w83627hf and some other drivers.



int w83627hf_detect(struct i2c_adapter *adapter, int address,
                   int kind)
{
        int val;
        struct i2c_client *new_client;
        struct w83627hf_data *data;
        int err = 0;
        const char *client_name = "";

        if (!i2c_is_isa_adapter(adapter)) {
                err = -ENODEV;
                goto ERROR0;
        }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux