]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use dev_get_drvdata
authorChuhong Yuan <hslester96@gmail.com>
Tue, 23 Jul 2019 10:39:16 +0000 (18:39 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Jul 2019 16:55:08 +0000 (17:55 +0100)
commitd71da3c6f93fe758a2af7684c328083b1e07db1d
treed06f48dfc2ff388f5ee8f20fcaf2ed8fa955fdc6
parentf7fabda64b2df401c140aa753cc3e778d79c7d2f
drm/i915: Use dev_get_drvdata

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>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190723103915.3964-1-hslester96@gmail.com
drivers/gpu/drm/i915/i915_drv.c