Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (3 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/drivers/usb/gadget/function/f_acm.c

    r25370 r31885  
    541541        struct usb_composite_dev *cdev = acm->port.func.config->cdev;
    542542        int                     status;
     543        __le16                  serial_state;
    543544
    544545        spin_lock(&acm->lock);
     
    546547                dev_dbg(&cdev->gadget->dev, "acm ttyGS%d serial state %04x\n",
    547548                        acm->port_num, acm->serial_state);
     549                serial_state = cpu_to_le16(acm->serial_state);
    548550                status = acm_cdc_notify(acm, USB_CDC_NOTIFY_SERIAL_STATE,
    549                                 0, &acm->serial_state, sizeof(acm->serial_state));
     551                                0, &serial_state, sizeof(acm->serial_state));
    550552        } else {
    551553                acm->pending = true;
Note: See TracChangeset for help on using the changeset viewer.