Lines Matching defs:client
51 int pm80x_init(struct i2c_client *client)
59 devm_kzalloc(&client->dev, sizeof(struct pm80x_chip), GFP_KERNEL);
63 map = devm_regmap_init_i2c(client, &pm80x_regmap_config);
66 dev_err(&client->dev, "Failed to allocate register map: %d\n",
71 chip->client = client;
74 chip->irq = client->irq;
76 chip->dev = &client->dev;
77 i2c_set_clientdata(chip->client, chip);
98 device_init_wakeup(&client->dev, 1);
109 chip->companion = g_pm80x_chip->client;
110 g_pm80x_chip->companion = chip->client;
133 struct i2c_client *client = to_i2c_client(dev);
134 struct pm80x_chip *chip = i2c_get_clientdata(client);
145 struct i2c_client *client = to_i2c_client(dev);
146 struct pm80x_chip *chip = i2c_get_clientdata(client);