]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: core: hcd-pci: Use dev_get_drvdata where possible
authorChuhong Yuan <hslester96@gmail.com>
Wed, 24 Jul 2019 13:18:38 +0000 (21:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 09:07:41 +0000 (11:07 +0200)
commit57cd166afc4b430d7b98dca71911bfef478d236b
treee5eba30bdcf23ef8e7869008ff88f34e510bd1b4
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
USB: core: hcd-pci: Use dev_get_drvdata where possible

Instead of using to_pci_dev + pci_get_drvdata,
use dev_get_drvdata to make code simpler.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Link: https://lore.kernel.org/r/20190724131838.1931-1-hslester96@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd-pci.c