aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-07-29 09:50:55 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-09-29 11:20:21 -0400
commite8405f0f617856de0ceb7d04e65b663051451544 (patch)
tree06e9cd27419a40587bcec19b71010e52b7dfcba4 /drivers/net
parentfb49fa533f9d211994c33efb752ffa5b30033729 (diff)
pcmcia: move Vpp setup to struct pcmcia_device
Some drivers prefer to explicitly set Vpp. Instead of passing the voltage inside config_req_t, store it in struct pcmcia_device. CC: linux-ide@vger.kernel.org CC: netdev@vger.kernel.org CC: linux-mtd@lists.infradead.org CC: linux-wireless@vger.kernel.org CC: linux-serial@vger.kernel.org CC: linux-usb@vger.kernel.org CC: linux-scsi@vger.kernel.org Acked-by: Gustavo F. Padovan <padovan@profusion.mobi> (for drivers/bluetooth) Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/airo_cs.c8
-rw-r--r--drivers/net/wireless/atmel_cs.c4
-rw-r--r--drivers/net/wireless/hostap/hostap_cs.c10
-rw-r--r--drivers/net/wireless/orinoco/orinoco_cs.c4
-rw-r--r--drivers/net/wireless/orinoco/spectrum_cs.c4
5 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c
index 9a121a5b787c..488e7b45d54b 100644
--- a/drivers/net/wireless/airo_cs.c
+++ b/drivers/net/wireless/airo_cs.c
@@ -166,9 +166,9 @@ static int airo_cs_config_check(struct pcmcia_device *p_dev,
166 /* Use power settings for Vcc and Vpp if present */ 166 /* Use power settings for Vcc and Vpp if present */
167 /* Note that the CIS values need to be rescaled */ 167 /* Note that the CIS values need to be rescaled */
168 if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) 168 if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM))
169 p_dev->conf.Vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; 169 p_dev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000;
170 else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) 170 else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM))
171 p_dev->conf.Vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; 171 p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000;
172 172
173 p_dev->conf.Attributes |= CONF_ENABLE_IRQ; 173 p_dev->conf.Attributes |= CONF_ENABLE_IRQ;
174 174
@@ -244,8 +244,8 @@ static int airo_config(struct pcmcia_device *link)
244 /* Finally, report what we've done */ 244 /* Finally, report what we've done */
245 dev_info(&link->dev, "index 0x%02x: ", 245 dev_info(&link->dev, "index 0x%02x: ",
246 link->conf.ConfigIndex); 246 link->conf.ConfigIndex);
247 if (link->conf.Vpp) 247 if (link->vpp)
248 printk(", Vpp %d.%d", link->conf.Vpp/10, link->conf.Vpp%10); 248 printk(", Vpp %d.%d", link->vpp/10, link->vpp%10);
249 printk(", irq %d", link->irq); 249 printk(", irq %d", link->irq);
250 if (link->resource[0]) 250 if (link->resource[0])
251 printk(" & %pR", link->resource[0]); 251 printk(" & %pR", link->resource[0]);
diff --git a/drivers/net/wireless/atmel_cs.c b/drivers/net/wireless/atmel_cs.c
index 3b632161c106..479f5084bac1 100644
--- a/drivers/net/wireless/atmel_cs.c
+++ b/drivers/net/wireless/atmel_cs.c
@@ -183,9 +183,9 @@ static int atmel_config_check(struct pcmcia_device *p_dev,
183 /* Use power settings for Vcc and Vpp if present */ 183 /* Use power settings for Vcc and Vpp if present */
184 /* Note that the CIS values need to be rescaled */ 184 /* Note that the CIS values need to be rescaled */
185 if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM)) 185 if (cfg->vpp1.present & (1<<CISTPL_POWER_VNOM))
186 p_dev->conf.Vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000; 186 p_dev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM]/10000;
187 else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) 187 else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM))
188 p_dev->conf.Vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; 188 p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000;
189 189
190 p_dev->conf.Attributes |= CONF_ENABLE_IRQ; 190 p_dev->conf.Attributes |= CONF_ENABLE_IRQ;
191 191
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c
index ba54d1b04d22..3f35dd4438ca 100644
--- a/drivers/net/wireless/hostap/hostap_cs.c
+++ b/drivers/net/wireless/hostap/hostap_cs.c
@@ -508,9 +508,9 @@ static int prism2_config_check(struct pcmcia_device *p_dev,
508 } 508 }
509 509
510 if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) 510 if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM))
511 p_dev->conf.Vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; 511 p_dev->vpp = cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000;
512 else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) 512 else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM))
513 p_dev->conf.Vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; 513 p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000;
514 514
515 /* Do we need to allocate an interrupt? */ 515 /* Do we need to allocate an interrupt? */
516 p_dev->conf.Attributes |= CONF_ENABLE_IRQ; 516 p_dev->conf.Attributes |= CONF_ENABLE_IRQ;
@@ -605,9 +605,9 @@ static int prism2_config(struct pcmcia_device *link)
605 /* Finally, report what we've done */ 605 /* Finally, report what we've done */
606 printk(KERN_INFO "%s: index 0x%02x: ", 606 printk(KERN_INFO "%s: index 0x%02x: ",
607 dev_info, link->conf.ConfigIndex); 607 dev_info, link->conf.ConfigIndex);
608 if (link->conf.Vpp) 608 if (link->vpp)
609 printk(", Vpp %d.%d", link->conf.Vpp / 10, 609 printk(", Vpp %d.%d", link->vpp / 10,
610 link->conf.Vpp % 10); 610 link->vpp % 10);
611 if (link->conf.Attributes & CONF_ENABLE_IRQ) 611 if (link->conf.Attributes & CONF_ENABLE_IRQ)
612 printk(", irq %d", link->irq); 612 printk(", irq %d", link->irq);
613 if (link->resource[0]) 613 if (link->resource[0])
diff --git a/drivers/net/wireless/orinoco/orinoco_cs.c b/drivers/net/wireless/orinoco/orinoco_cs.c
index ef46a2d88539..f7e3fa6305b4 100644
--- a/drivers/net/wireless/orinoco/orinoco_cs.c
+++ b/drivers/net/wireless/orinoco/orinoco_cs.c
@@ -181,10 +181,10 @@ static int orinoco_cs_config_check(struct pcmcia_device *p_dev,
181 } 181 }
182 182
183 if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) 183 if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM))
184 p_dev->conf.Vpp = 184 p_dev->vpp =
185 cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; 185 cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000;
186 else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) 186 else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM))
187 p_dev->conf.Vpp = 187 p_dev->vpp =
188 dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; 188 dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000;
189 189
190 /* Do we need to allocate an interrupt? */ 190 /* Do we need to allocate an interrupt? */
diff --git a/drivers/net/wireless/orinoco/spectrum_cs.c b/drivers/net/wireless/orinoco/spectrum_cs.c
index 873877e17e1b..1bbad101b559 100644
--- a/drivers/net/wireless/orinoco/spectrum_cs.c
+++ b/drivers/net/wireless/orinoco/spectrum_cs.c
@@ -243,10 +243,10 @@ static int spectrum_cs_config_check(struct pcmcia_device *p_dev,
243 } 243 }
244 244
245 if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM)) 245 if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM))
246 p_dev->conf.Vpp = 246 p_dev->vpp =
247 cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000; 247 cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000;
248 else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM)) 248 else if (dflt->vpp1.present & (1 << CISTPL_POWER_VNOM))
249 p_dev->conf.Vpp = 249 p_dev->vpp =
250 dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000; 250 dflt->vpp1.param[CISTPL_POWER_VNOM] / 10000;
251 251
252 /* Do we need to allocate an interrupt? */ 252 /* Do we need to allocate an interrupt? */