i2c: designware: use to_pci_dev()
authorGeliang Tang <geliangtang@163.com>
Sun, 27 Dec 2015 10:45:59 +0000 (18:45 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 3 Jan 2016 18:54:00 +0000 (19:54 +0100)
commit238c44a70c0637765709c78eeaddb2a3d3674b88
tree677278354c92e7f5b012f8d77bf822f9da8bd4aa
parente2e5a2c618373b55bbb2eca2a6e535dddd04412c
i2c: designware: use to_pci_dev()

Use to_pci_dev() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-pcidrv.c