Lines Matching refs:auxdev
273 static int ljca_i2c_probe(struct auxiliary_device *auxdev,
276 struct ljca_client *ljca = auxiliary_dev_to_ljca_client(auxdev);
280 ljca_i2c = devm_kzalloc(&auxdev->dev, sizeof(*ljca_i2c), GFP_KERNEL);
285 ljca_i2c->i2c_info = dev_get_platdata(&auxdev->dev);
291 ljca_i2c->adap.dev.parent = &auxdev->dev;
294 dev_name(&auxdev->dev), dev_name(auxdev->dev.parent),
297 device_set_node(&ljca_i2c->adap.dev, dev_fwnode(&auxdev->dev));
300 auxiliary_set_drvdata(auxdev, ljca_i2c);
304 return dev_err_probe(&auxdev->dev, -EIO,
308 ret = devm_i2c_add_adapter(&auxdev->dev, &ljca_i2c->adap);
318 static void ljca_i2c_remove(struct auxiliary_device *auxdev)
320 struct ljca_i2c_dev *ljca_i2c = auxiliary_get_drvdata(auxdev);