Lines Matching refs:hpdev

516 	struct device *dev = &data->hpdev.client->dev;  in mlxreg_lc_sn4800_c16_config_init()
706 struct device *dev = &data->hpdev.client->dev; in mlxreg_lc_config_init()
730 mlxreg_lc->mux = platform_device_register_resndata(dev, "i2c-mux-mlxcpld", data->hpdev.nr, in mlxreg_lc_config_init()
740 platform_device_register_resndata(dev, "mlxreg-io", data->hpdev.nr, NULL, 0, in mlxreg_lc_config_init()
752 platform_device_register_resndata(dev, "leds-mlxreg", data->hpdev.nr, NULL, 0, in mlxreg_lc_config_init()
808 data->hpdev.adapter = i2c_get_adapter(data->hpdev.nr); in mlxreg_lc_probe()
809 if (!data->hpdev.adapter) { in mlxreg_lc_probe()
811 data->hpdev.nr); in mlxreg_lc_probe()
816 data->hpdev.client = i2c_new_client_device(data->hpdev.adapter, in mlxreg_lc_probe()
817 data->hpdev.brdinfo); in mlxreg_lc_probe()
818 if (IS_ERR(data->hpdev.client)) { in mlxreg_lc_probe()
820 data->hpdev.brdinfo->type, data->hpdev.nr, data->hpdev.brdinfo->addr); in mlxreg_lc_probe()
822 i2c_put_adapter(data->hpdev.adapter); in mlxreg_lc_probe()
823 data->hpdev.adapter = NULL; in mlxreg_lc_probe()
824 return PTR_ERR(data->hpdev.client); in mlxreg_lc_probe()
827 regmap = devm_regmap_init_i2c(data->hpdev.client, in mlxreg_lc_probe()
848 par_pdata = data->hpdev.brdinfo->platform_data; in mlxreg_lc_probe()
862 i2c_put_adapter(data->hpdev.adapter); in mlxreg_lc_probe()
884 if (data->hpdev.client) { in mlxreg_lc_remove()
885 i2c_unregister_device(data->hpdev.client); in mlxreg_lc_remove()
886 data->hpdev.client = NULL; in mlxreg_lc_remove()
887 i2c_put_adapter(data->hpdev.adapter); in mlxreg_lc_remove()
888 data->hpdev.adapter = NULL; in mlxreg_lc_remove()