Lines Matching refs:client

51 static bool bmc150_acpi_set_angle_dsm(struct i2c_client *client, u32 aux0, u32 ang0)
53 struct acpi_device *adev = ACPI_COMPANION(&client->dev);
82 dev_err(&client->dev, "Failed to call DSM to enable keyboard and touchpad\n");
90 static bool bmc150_acpi_enable_keyboard(struct i2c_client *client)
97 if (!bmc150_acpi_set_angle_dsm(client, 0, 270))
103 return bmc150_acpi_set_angle_dsm(client, 0, 90);
130 static void bmc150_acpi_dual_accel_probe(struct i2c_client *client)
132 struct bmc150_accel_data *data = iio_priv(i2c_get_clientdata(client));
133 struct acpi_device *adev = ACPI_COMPANION(&client->dev);
138 .fwnode = client->dev.fwnode,
152 data->second_device = i2c_acpi_new_device(&client->dev, 1, &board_info);
160 static void bmc150_acpi_dual_accel_remove(struct i2c_client *client)
162 struct bmc150_accel_data *data = iio_priv(i2c_get_clientdata(client));
170 static void bmc150_acpi_dual_accel_probe(struct i2c_client *client) {}
171 static void bmc150_acpi_dual_accel_remove(struct i2c_client *client) {}
174 static int bmc150_accel_probe(struct i2c_client *client)
176 const struct i2c_device_id *id = i2c_client_get_device_id(client);
181 i2c_check_functionality(client->adapter, I2C_FUNC_I2C) ||
182 i2c_check_functionality(client->adapter,
186 regmap = devm_regmap_init_i2c(client, &bmc150_regmap_conf);
188 dev_err(&client->dev, "Failed to initialize i2c regmap\n");
197 ret = bmc150_accel_core_probe(&client->dev, regmap, client->irq,
204 * for the second client.
206 if (!id && has_acpi_companion(&client->dev))
207 bmc150_acpi_dual_accel_probe(client);
212 static void bmc150_accel_remove(struct i2c_client *client)
214 bmc150_acpi_dual_accel_remove(client);
216 bmc150_accel_core_remove(&client->dev);