mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] Acked-by: Gustavo F. Padovan <[email protected]> (for drivers/bluetooth) Tested-by: Wolfram Sang <[email protected]> Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
fb49fa533f
commit
e8405f0f61
17 changed files with 40 additions and 39 deletions
|
|
@ -303,6 +303,7 @@ int pcmcia_fixup_vpp(struct pcmcia_device *p_dev, unsigned char new_vpp)
|
|||
ret = -EIO;
|
||||
goto unlock;
|
||||
}
|
||||
p_dev->vpp = new_vpp;
|
||||
|
||||
unlock:
|
||||
mutex_unlock(&s->ops_mutex);
|
||||
|
|
@ -458,7 +459,7 @@ int pcmcia_request_configuration(struct pcmcia_device *p_dev,
|
|||
}
|
||||
|
||||
/* Do power control. We don't allow changes in Vcc. */
|
||||
s->socket.Vpp = req->Vpp;
|
||||
s->socket.Vpp = p_dev->vpp;
|
||||
if (s->ops->set_socket(s, &s->socket)) {
|
||||
mutex_unlock(&s->ops_mutex);
|
||||
dev_printk(KERN_WARNING, &p_dev->dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue