Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1298346

[PATCH 5/9] ipw2x00: sdhci-pci: use to_pci_dev()

From Geliang Tang <geliangtang@163.com>
Newsgroups linux.kernel
Subject [PATCH 5/9] ipw2x00: sdhci-pci: use to_pci_dev()
Date 2015-12-27 11:50 +0100
Message-ID <qKh3H-5KU-9@gated-at.bofh.it> (permalink)
References <qKh3H-5KU-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Use to_pci_dev() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
---
 drivers/net/wireless/intel/ipw2x00/ipw2100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c
index 36818c7..121294f 100644
--- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c
+++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c
@@ -3514,7 +3514,7 @@ static void ipw2100_msg_free(struct ipw2100_priv *priv)
 static ssize_t show_pci(struct device *d, struct device_attribute *attr,
 			char *buf)
 {
-	struct pci_dev *pci_dev = container_of(d, struct pci_dev, dev);
+	struct pci_dev *pci_dev = to_pci_dev(d);
 	char *out = buf;
 	int i, j;
 	u32 val;
-- 
2.5.0


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/9] atm: solos-pci: use to_pci_dev() Geliang Tang <geliangtang@163.com> - 2015-12-27 11:50 +0100
  [PATCH 8/9] vme: vme_ca91cx42.c: use to_pci_dev() Geliang Tang <geliangtang@163.com> - 2015-12-27 11:50 +0100
    Re: [PATCH 8/9] vme: vme_ca91cx42.c: use to_pci_dev() Martyn Welch <martyn@welchs.me.uk> - 2015-12-28 03:50 +0100
  [PATCH 5/9] ipw2x00: sdhci-pci: use to_pci_dev() Geliang Tang <geliangtang@163.com> - 2015-12-27 11:50 +0100
    Re: [PATCH 5/9] ipw2x00: sdhci-pci: use to_pci_dev() Kalle Valo <kvalo@codeaurora.org> - 2015-12-31 09:40 +0100
  [PATCH 9/9] devres: use to_pci_dev() Geliang Tang <geliangtang@163.com> - 2015-12-27 11:50 +0100
    Re: [PATCH 9/9] devres: use to_pci_dev() Tejun Heo <tj@kernel.org> - 2015-12-28 17:30 +0100
  [PATCH 3/9] i2c: designware: use to_pci_dev() Geliang Tang <geliangtang@163.com> - 2015-12-27 11:50 +0100
    Re: [PATCH 3/9] i2c: designware: use to_pci_dev() Andy Shevchenko <andy.shevchenko@gmail.com> - 2015-12-27 13:50 +0100
  [PATCH 4/9] mmc: sdhci-pci: use to_pci_dev() Geliang Tang <geliangtang@163.com> - 2015-12-27 11:50 +0100
    Re: [PATCH 4/9] mmc: sdhci-pci: use to_pci_dev() Ulf Hansson <ulf.hansson@linaro.org> - 2015-12-28 14:30 +0100
  [PATCH 6/9] ssb: use to_pci_dev() Geliang Tang <geliangtang@163.com> - 2015-12-27 11:50 +0100
  Re: [PATCH 1/9] atm: solos-pci: use to_pci_dev() David Miller <davem@davemloft.net> - 2015-12-29 21:50 +0100

csiph-web