diff options
| -rw-r--r-- | drivers/acpi/battery.c | 14 | ||||
| -rw-r--r-- | drivers/char/serial167.c | 2 | ||||
| -rw-r--r-- | drivers/message/i2o/i2o_block.c | 2 | ||||
| -rw-r--r-- | drivers/message/i2o/iop.c | 1 | ||||
| -rw-r--r-- | drivers/serial/mpc52xx_uart.c | 4 | ||||
| -rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 2 |
6 files changed, 6 insertions, 19 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 4fb3c12ac1d8..1423b0c0cd2e 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
| @@ -173,19 +173,7 @@ static int acpi_battery_get_property(struct power_supply *psy, | |||
| 173 | val->intval = battery->voltage_now * 1000; | 173 | val->intval = battery->voltage_now * 1000; |
| 174 | break; | 174 | break; |
| 175 | case POWER_SUPPLY_PROP_CURRENT_NOW: | 175 | case POWER_SUPPLY_PROP_CURRENT_NOW: |
| 176 | val->intval = battery->current_now; | 176 | val->intval = battery->current_now * 1000; |
| 177 | if (battery->power_unit) { | ||
| 178 | val->intval *= 1000; | ||
| 179 | } else { | ||
| 180 | /* | ||
| 181 | * If power units are mW, convert to mA by dividing by | ||
| 182 | * current voltage. | ||
| 183 | */ | ||
| 184 | if (battery->voltage_now) | ||
| 185 | val->intval /= battery->voltage_now; | ||
| 186 | else | ||
| 187 | val->intval = -1; | ||
| 188 | } | ||
| 189 | break; | 177 | break; |
| 190 | case POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN: | 178 | case POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN: |
| 191 | case POWER_SUPPLY_PROP_ENERGY_FULL_DESIGN: | 179 | case POWER_SUPPLY_PROP_ENERGY_FULL_DESIGN: |
diff --git a/drivers/char/serial167.c b/drivers/char/serial167.c index 3b23270eaa65..a8f15e6be594 100644 --- a/drivers/char/serial167.c +++ b/drivers/char/serial167.c | |||
| @@ -418,7 +418,7 @@ static irqreturn_t cd2401_rxerr_interrupt(int irq, void *dev_id) | |||
| 418 | TTY_OVERRUN); | 418 | TTY_OVERRUN); |
| 419 | /* | 419 | /* |
| 420 | If the flip buffer itself is | 420 | If the flip buffer itself is |
| 421 | overflowing, we still loose | 421 | overflowing, we still lose |
| 422 | the next incoming character. | 422 | the next incoming character. |
| 423 | */ | 423 | */ |
| 424 | if (tty_buffer_request_room(tty, 1) != | 424 | if (tty_buffer_request_room(tty, 1) != |
diff --git a/drivers/message/i2o/i2o_block.c b/drivers/message/i2o/i2o_block.c index 84bdc2ee69e6..a443e136dc41 100644 --- a/drivers/message/i2o/i2o_block.c +++ b/drivers/message/i2o/i2o_block.c | |||
| @@ -354,7 +354,7 @@ static inline void i2o_block_sglist_free(struct i2o_block_request *ireq) | |||
| 354 | * @req: the request to prepare | 354 | * @req: the request to prepare |
| 355 | * | 355 | * |
| 356 | * Allocate the necessary i2o_block_request struct and connect it to | 356 | * Allocate the necessary i2o_block_request struct and connect it to |
| 357 | * the request. This is needed that we not loose the SG list later on. | 357 | * the request. This is needed that we not lose the SG list later on. |
| 358 | * | 358 | * |
| 359 | * Returns BLKPREP_OK on success or BLKPREP_DEFER on failure. | 359 | * Returns BLKPREP_OK on success or BLKPREP_DEFER on failure. |
| 360 | */ | 360 | */ |
diff --git a/drivers/message/i2o/iop.c b/drivers/message/i2o/iop.c index be2b5926d26c..6e53a30bfd38 100644 --- a/drivers/message/i2o/iop.c +++ b/drivers/message/i2o/iop.c | |||
| @@ -49,7 +49,6 @@ static int i2o_hrt_get(struct i2o_controller *c); | |||
| 49 | /** | 49 | /** |
| 50 | * i2o_msg_get_wait - obtain an I2O message from the IOP | 50 | * i2o_msg_get_wait - obtain an I2O message from the IOP |
| 51 | * @c: I2O controller | 51 | * @c: I2O controller |
| 52 | * @msg: pointer to a I2O message pointer | ||
| 53 | * @wait: how long to wait until timeout | 52 | * @wait: how long to wait until timeout |
| 54 | * | 53 | * |
| 55 | * This function waits up to wait seconds for a message slot to be | 54 | * This function waits up to wait seconds for a message slot to be |
diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c index 6117d3db0b66..28c00c3d58f5 100644 --- a/drivers/serial/mpc52xx_uart.c +++ b/drivers/serial/mpc52xx_uart.c | |||
| @@ -591,8 +591,8 @@ mpc52xx_uart_set_termios(struct uart_port *port, struct ktermios *new, | |||
| 591 | /* Update the per-port timeout */ | 591 | /* Update the per-port timeout */ |
| 592 | uart_update_timeout(port, new->c_cflag, baud); | 592 | uart_update_timeout(port, new->c_cflag, baud); |
| 593 | 593 | ||
| 594 | /* Do our best to flush TX & RX, so we don't loose anything */ | 594 | /* Do our best to flush TX & RX, so we don't lose anything */ |
| 595 | /* But we don't wait indefinitly ! */ | 595 | /* But we don't wait indefinitely ! */ |
| 596 | j = 5000000; /* Maximum wait */ | 596 | j = 5000000; /* Maximum wait */ |
| 597 | /* FIXME Can't receive chars since set_termios might be called at early | 597 | /* FIXME Can't receive chars since set_termios might be called at early |
| 598 | * boot for the console, all stuff is not yet ready to receive at that | 598 | * boot for the console, all stuff is not yet ready to receive at that |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 51d7bdea2869..aad1359a3eb1 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
| @@ -1498,7 +1498,7 @@ static int ftdi_open(struct tty_struct *tty, | |||
| 1498 | priv->interface, buf, 0, WDR_TIMEOUT); | 1498 | priv->interface, buf, 0, WDR_TIMEOUT); |
| 1499 | 1499 | ||
| 1500 | /* Termios defaults are set by usb_serial_init. We don't change | 1500 | /* Termios defaults are set by usb_serial_init. We don't change |
| 1501 | port->tty->termios - this would loose speed settings, etc. | 1501 | port->tty->termios - this would lose speed settings, etc. |
| 1502 | This is same behaviour as serial.c/rs_open() - Kuba */ | 1502 | This is same behaviour as serial.c/rs_open() - Kuba */ |
| 1503 | 1503 | ||
| 1504 | /* ftdi_set_termios will send usb control messages */ | 1504 | /* ftdi_set_termios will send usb control messages */ |
