Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185297
b: refs/heads/master
c: 974fccb
h: refs/heads/master
i:
  185295: fc593f7
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 7295723 commit 1934813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0954644bf5a5a2281746516ce0f5df988d504c31
refs/heads/master: 974fccb7aba8ca4ff887836e26c0ac4c99d041ca
4 changes: 2 additions & 2 deletions trunk/drivers/usb/serial/cypress_m8.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static int cypress_serial_control(struct tty_struct *tty,
__func__, new_baudrate);

/* fill the feature_buffer with new configuration */
*((u_int32_t *)feature_buffer) = new_baudrate;
*((u32 *)feature_buffer) = cpu_to_le32(new_baudrate);
feature_buffer[4] |= data_bits; /* assign data bits in 2 bit space ( max 3 ) */
/* 1 bit gap */
feature_buffer[4] |= (stop_bits << 3); /* assign stop bits in 1 bit space */
Expand Down Expand Up @@ -453,7 +453,7 @@ static int cypress_serial_control(struct tty_struct *tty,
/* store the config in one byte, and later
use bit masks to check values */
priv->current_config = feature_buffer[4];
priv->baud_rate = *((u_int32_t *)feature_buffer);
priv->baud_rate = le32_to_cpup((u32 *)feature_buffer);
spin_unlock_irqrestore(&priv->lock, flags);
}
}
Expand Down

0 comments on commit 1934813

Please sign in to comment.