Lines Matching refs:client
61 struct i2c_client *client; member
84 static int max1617_read(struct i2c_client *client, unsigned char subaddr) in max1617_read() argument
86 return i2c_smbus_read_byte_data(client, subaddr); in max1617_read()
96 status = max1617_read(m->client, MAX1617_STATUS); in max1617_update()
97 remote = max1617_read(m->client, MAX1617_REMOTE); in max1617_update()
98 local = max1617_read(m->client, MAX1617_LOCAL); in max1617_update()
124 struct i2c_client *client; in max1617_attach() local
127 client = kmalloc(sizeof(*client), GFP_KERNEL); in max1617_attach()
128 if (client == NULL) in max1617_attach()
130 client->adapter = adap; in max1617_attach()
131 client->addr = addr; in max1617_attach()
132 client->driver = &i2c_driver_max1617; in max1617_attach()
133 sprintf(client->name, "%s-%x", IF_NAME, addr); in max1617_attach()
134 if ((err = i2c_attach_client(client)) < 0) { in max1617_attach()
135 kfree(client); in max1617_attach()
141 i2c_detach_client(client); in max1617_attach()
142 kfree(client); in max1617_attach()
145 m->client = client; in max1617_attach()
154 client->data = m; in max1617_attach()
189 static void max1617_inc_use(struct i2c_client *client) in max1617_inc_use() argument
196 static void max1617_dec_use(struct i2c_client *client) in max1617_dec_use() argument