Lines Matching defs:reg
83 static int lp3944_reg_read(struct i2c_client *client, u8 reg, u8 *value)
87 tmp = i2c_smbus_read_byte_data(client, reg);
96 static int lp3944_reg_write(struct i2c_client *client, u8 reg, u8 value)
98 return i2c_smbus_write_byte_data(client, reg, value);
177 u8 reg;
189 reg = LP3944_REG_LS0;
196 reg = LP3944_REG_LS1;
212 lp3944_reg_read(led->client, reg, &val);
217 dev_dbg(&led->client->dev, "%s: %s, reg:%d id:%d status:%d val:%#x\n",
218 __func__, led->ldev.name, reg, id, status, val);
221 err = lp3944_reg_write(led->client, reg, val);