]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: designware: Use pci_get_drvdata()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 10 Sep 2024 16:28:46 +0000 (19:28 +0300)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 11 Sep 2024 10:52:46 +0000 (12:52 +0200)
commitf56f4ba2fc1dbefd3242946f2fad35338a60e3bc
treed887202f6ebe1f4aa0ed3f5b61c6d1ebb20e4c52
parenta6e690b0f784d70779ed23b76cf02a6b1cd23984
i2c: designware: Use pci_get_drvdata()

Use the wrapper function for getting the driver data using pci_dev
instead of using dev_get_drvdata() with &pdev->dev, so we can directly
pass a struct pci_dev. This is a purely cosmetic change.

Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-designware-pcidrv.c