Themodeparameter, if specified, is one of the lettersb,w,s, ori, corresponding to a read size of a single byte, a 16-bit word, an SMBus block, an I2C block, respectively. Thecmode is a little different, it reads all bytes consecutively, and is useful for chips that have an addre...
"I2C functionality not supported\n"); 10 return -ENODEV; 11 } 12 13 ts = kzalloc(sizeof(*ts), GFP_KERNEL); // 给 gsl_ts类型的指针申请分配内存 14 if (!ts) 15 return -ENOMEM; 16 print_info("==kzalloc success=\n"); 17 18 ts->client = client; // 通过gsl_ts->client指针去指...
address indicates the address to be scanned on that bus, and is an integer between 0x08 and 0x77. The mode parameter, if specified, is one of the letters b, w, or i, corresponding to a read size of a single byte, a 16-bit word, an I2C block, respectively. The c mode is a ...