static int eamp_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) { EAMP_PRINTK("+++++++++++++++eamp_i2c_probe++++++++++++++++++"); //add for test new_client = client; eamp_resetRegister(); EAMP_PRINTK("client=%x !!",client); return 0; }
static int tpa2028_eamp_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) { int ret = 0; EAMP_PRINTK("tpa2028_eamp_i2c_probe success"); new_client = client; ret = eamp_resetRegister(); EAMP_PRINTK("client=%x !!",client); if(ret < 0) { new_client = NULL; EAMP_PRINTK("[ERROR] maybe, chip is died by .. !!",client); return -1; }else { return 0; } }
static ssize_t eamp_suspend() { EAMP_PRINTK(""); eamp_resetRegister(); return 0; }