Lines Matching refs:dev
47 static bool rsmu_sabre_volatile_reg(struct device *dev, unsigned int reg) in rsmu_sabre_volatile_reg() argument
59 struct i2c_client *client = to_i2c_client(rsmu->dev); in rsmu_read_device()
76 dev_err(rsmu->dev, "i2c_transfer failed at addr: %04x!", reg); in rsmu_read_device()
79 dev_err(rsmu->dev, in rsmu_read_device()
89 struct i2c_client *client = to_i2c_client(rsmu->dev); in rsmu_write_device()
102 dev_err(&client->dev, in rsmu_write_device()
131 dev_err(rsmu->dev, "Failed to set page offset 0x%x\n", page); in rsmu_write_page_register()
151 dev_err(rsmu->dev, "Failed to read offset address 0x%x\n", addr); in rsmu_reg_read()
169 dev_err(rsmu->dev, in rsmu_reg_write()
211 rsmu = devm_kzalloc(&client->dev, sizeof(*rsmu), GFP_KERNEL); in rsmu_i2c_probe()
217 rsmu->dev = &client->dev; in rsmu_i2c_probe()
231 dev_err(rsmu->dev, "Unsupported RSMU device type: %d\n", rsmu->type); in rsmu_i2c_probe()
236 rsmu->regmap = devm_regmap_init(&client->dev, NULL, client, cfg); in rsmu_i2c_probe()
241 dev_err(rsmu->dev, "Failed to allocate register map: %d\n", ret); in rsmu_i2c_probe()