Lines Matching refs:hpdev

510 	struct device *dev = &data->hpdev.client->dev;  in mlxreg_lc_sn4800_c16_config_init()
717 struct device *dev = &data->hpdev.client->dev; in mlxreg_lc_config_init()
732 data->hpdev.brdinfo->type, data->hpdev.nr, in mlxreg_lc_config_init()
733 data->hpdev.brdinfo->addr); in mlxreg_lc_config_init()
745 mlxreg_lc->mux = platform_device_register_resndata(dev, "i2c-mux-mlxcpld", data->hpdev.nr, in mlxreg_lc_config_init()
750 data->hpdev.brdinfo->type, data->hpdev.nr, data->hpdev.brdinfo->addr); in mlxreg_lc_config_init()
758 platform_device_register_resndata(dev, "mlxreg-io", data->hpdev.nr, NULL, 0, in mlxreg_lc_config_init()
762 data->hpdev.brdinfo->type, data->hpdev.nr, in mlxreg_lc_config_init()
763 data->hpdev.brdinfo->addr); in mlxreg_lc_config_init()
773 platform_device_register_resndata(dev, "leds-mlxreg", data->hpdev.nr, NULL, 0, in mlxreg_lc_config_init()
778 data->hpdev.brdinfo->type, data->hpdev.nr, in mlxreg_lc_config_init()
779 data->hpdev.brdinfo->addr); in mlxreg_lc_config_init()
831 data->hpdev.adapter = i2c_get_adapter(data->hpdev.nr); in mlxreg_lc_probe()
832 if (!data->hpdev.adapter) { in mlxreg_lc_probe()
834 data->hpdev.nr); in mlxreg_lc_probe()
840 data->hpdev.client = i2c_new_client_device(data->hpdev.adapter, in mlxreg_lc_probe()
841 data->hpdev.brdinfo); in mlxreg_lc_probe()
842 if (IS_ERR(data->hpdev.client)) { in mlxreg_lc_probe()
844 data->hpdev.brdinfo->type, data->hpdev.nr, data->hpdev.brdinfo->addr); in mlxreg_lc_probe()
845 err = PTR_ERR(data->hpdev.client); in mlxreg_lc_probe()
849 regmap = devm_regmap_init_i2c(data->hpdev.client, in mlxreg_lc_probe()
853 data->hpdev.brdinfo->type, data->hpdev.nr, data->hpdev.brdinfo->addr); in mlxreg_lc_probe()
864 i, data->hpdev.brdinfo->type, data->hpdev.nr, in mlxreg_lc_probe()
865 data->hpdev.brdinfo->addr); in mlxreg_lc_probe()
875 data->hpdev.brdinfo->type, data->hpdev.nr, data->hpdev.brdinfo->addr); in mlxreg_lc_probe()
879 par_pdata = data->hpdev.brdinfo->platform_data; in mlxreg_lc_probe()
896 i2c_unregister_device(data->hpdev.client); in mlxreg_lc_probe()
897 data->hpdev.client = NULL; in mlxreg_lc_probe()
899 i2c_put_adapter(data->hpdev.adapter); in mlxreg_lc_probe()
900 data->hpdev.adapter = NULL; in mlxreg_lc_probe()
937 if (data->hpdev.client) { in mlxreg_lc_remove()
938 i2c_unregister_device(data->hpdev.client); in mlxreg_lc_remove()
939 data->hpdev.client = NULL; in mlxreg_lc_remove()
940 i2c_put_adapter(data->hpdev.adapter); in mlxreg_lc_remove()
941 data->hpdev.adapter = NULL; in mlxreg_lc_remove()