static int lnb_newprobe(struct i2c_client *client, const struct i2c_device_id *id) { if (lnb_client) { dprintk(10, "Failure, client already registered\n"); return -ENODEV; } dprintk(10, "I2C device found at address 0x%02x\n", client->addr); switch(devType) { case A8293: { a8293_init(client); break; } case LNB24: { lnb24_init(client); break; } case LNB_PIO: { lnb_pio_init(); break; } default: { return -ENODEV; } } lnb_client = client; return 0; }
static int lnb_newprobe(struct i2c_client *client, const struct i2c_device_id *id) { if (lnb_client) { dprintk("[LNB]: failure, client already registered\n"); return -ENODEV; } dprintk("[LNB]: chip found @ 0x%x\n", client->addr); switch(devType) { case A8293: a8293_init(client); break; case LNB24: lnb24_init(client); break; case LNB_PIO: lnb_pio_init(); break; default: return -ENODEV; } lnb_client = client; return 0; }