Lines Matching refs:adevice
164 static void ideapad_sync_rfk_state(struct acpi_device *adevice)
166 struct ideapad_private *priv = dev_get_drvdata(&adevice->dev);
182 static int ideapad_register_rfkill(struct acpi_device *adevice, int dev)
184 struct ideapad_private *priv = dev_get_drvdata(&adevice->dev);
187 priv->rfk[dev] = rfkill_alloc(ideapad_rfk_data[dev-1].name, &adevice->dev,
201 static void ideapad_unregister_rfkill(struct acpi_device *adevice, int dev)
203 struct ideapad_private *priv = dev_get_drvdata(&adevice->dev);
218 static int ideapad_acpi_add(struct acpi_device *adevice)
238 int ret = device_create_file(&adevice->dev, &dev_attr_camera_power);
245 dev_set_drvdata(&adevice->dev, priv);
250 ideapad_register_rfkill(adevice, i);
252 ideapad_sync_rfk_state(adevice);
256 static int ideapad_acpi_remove(struct acpi_device *adevice, int type)
258 struct ideapad_private *priv = dev_get_drvdata(&adevice->dev);
261 device_remove_file(&adevice->dev, &dev_attr_camera_power);
264 ideapad_unregister_rfkill(adevice, i);
266 dev_set_drvdata(&adevice->dev, NULL);
271 static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
273 ideapad_sync_rfk_state(adevice);