Skip to content

Commit

Permalink
ACPI: thinkpad-acpi: struct device - replace bus_id with dev_name(), …
Browse files Browse the repository at this point in the history
…dev_set_name()

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Kay Sievers authored and Len Brown committed Jan 15, 2009
1 parent 9abf0ee commit e0b36fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/platform/x86/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2375,7 +2375,7 @@ static void hotkey_notify(struct ibm_struct *ibm, u32 event)
/* forward it to userspace, maybe it knows how to handle it */
acpi_bus_generate_netlink_event(
ibm->acpi->device->pnp.device_class,
ibm->acpi->device->dev.bus_id,
dev_name(&ibm->acpi->device->dev),
event, 0);
return;
}
Expand Down Expand Up @@ -2505,7 +2505,7 @@ static void hotkey_notify(struct ibm_struct *ibm, u32 event)
if (!ignore_acpi_ev && send_acpi_ev) {
acpi_bus_generate_netlink_event(
ibm->acpi->device->pnp.device_class,
ibm->acpi->device->dev.bus_id,
dev_name(&ibm->acpi->device->dev),
event, hkey);
}
}
Expand Down Expand Up @@ -3724,7 +3724,7 @@ static void dock_notify(struct ibm_struct *ibm, u32 event)
}
acpi_bus_generate_proc_event(ibm->acpi->device, event, data);
acpi_bus_generate_netlink_event(ibm->acpi->device->pnp.device_class,
ibm->acpi->device->dev.bus_id,
dev_name(&ibm->acpi->device->dev),
event, data);
}

Expand Down Expand Up @@ -3826,7 +3826,7 @@ static void bay_notify(struct ibm_struct *ibm, u32 event)
{
acpi_bus_generate_proc_event(ibm->acpi->device, event, 0);
acpi_bus_generate_netlink_event(ibm->acpi->device->pnp.device_class,
ibm->acpi->device->dev.bus_id,
dev_name(&ibm->acpi->device->dev),
event, 0);
}

Expand Down

0 comments on commit e0b36fc

Please sign in to comment.