Lines Matching refs:hpdev
112 if (data->hpdev.nr < 0) in mlxreg_hotplug_device_create()
116 data->hpdev.adapter = i2c_get_adapter(data->hpdev.nr + in mlxreg_hotplug_device_create()
118 if (!data->hpdev.adapter) { in mlxreg_hotplug_device_create()
120 data->hpdev.nr + pdata->shift_nr); in mlxreg_hotplug_device_create()
124 data->hpdev.client = i2c_new_device(data->hpdev.adapter, in mlxreg_hotplug_device_create()
125 data->hpdev.brdinfo); in mlxreg_hotplug_device_create()
126 if (!data->hpdev.client) { in mlxreg_hotplug_device_create()
128 data->hpdev.brdinfo->type, data->hpdev.nr + in mlxreg_hotplug_device_create()
129 pdata->shift_nr, data->hpdev.brdinfo->addr); in mlxreg_hotplug_device_create()
131 i2c_put_adapter(data->hpdev.adapter); in mlxreg_hotplug_device_create()
132 data->hpdev.adapter = NULL; in mlxreg_hotplug_device_create()
146 if (data->hpdev.client) { in mlxreg_hotplug_device_destroy()
147 i2c_unregister_device(data->hpdev.client); in mlxreg_hotplug_device_destroy()
148 data->hpdev.client = NULL; in mlxreg_hotplug_device_destroy()
151 if (data->hpdev.adapter) { in mlxreg_hotplug_device_destroy()
152 i2c_put_adapter(data->hpdev.adapter); in mlxreg_hotplug_device_destroy()
153 data->hpdev.adapter = NULL; in mlxreg_hotplug_device_destroy()