Commit 63d121fe authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Search and replace bReg with reg

Search and replace bReg with reg
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 615e0c65
...@@ -652,7 +652,7 @@ static int musb_proc_write(struct file *file, const char __user *buffer, ...@@ -652,7 +652,7 @@ static int musb_proc_write(struct file *file, const char __user *buffer,
unsigned long count, void *data) unsigned long count, void *data)
{ {
char cmd; char cmd;
u8 bReg; u8 reg;
struct musb *musb = (struct musb *)data; struct musb *musb = (struct musb *)data;
void __iomem *mbase = musb->mregs; void __iomem *mbase = musb->mregs;
...@@ -664,47 +664,47 @@ static int musb_proc_write(struct file *file, const char __user *buffer, ...@@ -664,47 +664,47 @@ static int musb_proc_write(struct file *file, const char __user *buffer,
switch (cmd) { switch (cmd) {
case 'C': case 'C':
if (mbase) { if (mbase) {
bReg = musb_readb(mbase, MUSB_POWER) reg = musb_readb(mbase, MUSB_POWER)
| MUSB_POWER_SOFTCONN; | MUSB_POWER_SOFTCONN;
musb_writeb(mbase, MUSB_POWER, bReg); musb_writeb(mbase, MUSB_POWER, reg);
} }
break; break;
case 'c': case 'c':
if (mbase) { if (mbase) {
bReg = musb_readb(mbase, MUSB_POWER) reg = musb_readb(mbase, MUSB_POWER)
& ~MUSB_POWER_SOFTCONN; & ~MUSB_POWER_SOFTCONN;
musb_writeb(mbase, MUSB_POWER, bReg); musb_writeb(mbase, MUSB_POWER, reg);
} }
break; break;
case 'I': case 'I':
if (mbase) { if (mbase) {
bReg = musb_readb(mbase, MUSB_POWER) reg = musb_readb(mbase, MUSB_POWER)
| MUSB_POWER_HSENAB; | MUSB_POWER_HSENAB;
musb_writeb(mbase, MUSB_POWER, bReg); musb_writeb(mbase, MUSB_POWER, reg);
} }
break; break;
case 'i': case 'i':
if (mbase) { if (mbase) {
bReg = musb_readb(mbase, MUSB_POWER) reg = musb_readb(mbase, MUSB_POWER)
& ~MUSB_POWER_HSENAB; & ~MUSB_POWER_HSENAB;
musb_writeb(mbase, MUSB_POWER, bReg); musb_writeb(mbase, MUSB_POWER, reg);
} }
break; break;
case 'F': case 'F':
bReg = musb_readb(mbase, MUSB_DEVCTL); reg = musb_readb(mbase, MUSB_DEVCTL);
bReg |= MUSB_DEVCTL_SESSION; reg |= MUSB_DEVCTL_SESSION;
musb_writeb(mbase, MUSB_DEVCTL, bReg); musb_writeb(mbase, MUSB_DEVCTL, reg);
break; break;
case 'H': case 'H':
if (mbase) { if (mbase) {
bReg = musb_readb(mbase, MUSB_DEVCTL); reg = musb_readb(mbase, MUSB_DEVCTL);
bReg |= MUSB_DEVCTL_HR; reg |= MUSB_DEVCTL_HR;
musb_writeb(mbase, MUSB_DEVCTL, bReg); musb_writeb(mbase, MUSB_DEVCTL, reg);
//MUSB_HST_MODE( ((struct musb*)data) ); //MUSB_HST_MODE( ((struct musb*)data) );
//WARN("Host Mode\n"); //WARN("Host Mode\n");
} }
...@@ -712,9 +712,9 @@ static int musb_proc_write(struct file *file, const char __user *buffer, ...@@ -712,9 +712,9 @@ static int musb_proc_write(struct file *file, const char __user *buffer,
case 'h': case 'h':
if (mbase) { if (mbase) {
bReg = musb_readb(mbase, MUSB_DEVCTL); reg = musb_readb(mbase, MUSB_DEVCTL);
bReg &= ~MUSB_DEVCTL_HR; reg &= ~MUSB_DEVCTL_HR;
musb_writeb(mbase, MUSB_DEVCTL, bReg); musb_writeb(mbase, MUSB_DEVCTL, reg);
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment