由于项目中用到BQ27542的HDQ通讯方式,所以想问一下BQ27542-G1的fid是多少?谢谢~~
因为目前总是add_slave()失败。
/**
* struct w1_family - reference counted family structure.
* @family_entry: family linked list
* @fid: 8 bit family identifier
* @fops: operations for this family
* @refcnt: reference counter
*/
struct w1_family
{
struct list_head family_entry;
u8 fid;
struct w1_family_ops *fops;
atomic_t refcnt;
};