@@ -100,7 +100,8 @@ void hid_set_next_idle(HIDState *hs)
uint64_t expire_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
NANOSECONDS_PER_SECOND * hs->idle * 4 / 1000;
if (!hs->idle_timer) {
- hs->idle_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, hid_idle_timer, hs);
+ hs->idle_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, hid_idle_timer,
+ hs);
}
timer_mod_ns(hs->idle_timer, expire_time);
} else {
@@ -259,13 +259,15 @@ static void milkymist_softusb_realize(DeviceState *dev, Error **errp)
sysbus_init_mmio(sbd, &s->regs_region);
/* register pmem and dmem */
- memory_region_init_ram_nomigrate(&s->pmem, OBJECT(s), "milkymist-softusb.pmem",
- s->pmem_size, &error_fatal);
+ memory_region_init_ram_nomigrate(&s->pmem, OBJECT(s),
+ "milkymist-softusb.pmem", s->pmem_size,
+ &error_fatal);
vmstate_register_ram_global(&s->pmem);
s->pmem_ptr = memory_region_get_ram_ptr(&s->pmem);
sysbus_init_mmio(sbd, &s->pmem);
- memory_region_init_ram_nomigrate(&s->dmem, OBJECT(s), "milkymist-softusb.dmem",
- s->dmem_size, &error_fatal);
+ memory_region_init_ram_nomigrate(&s->dmem, OBJECT(s),
+ "milkymist-softusb.dmem", s->dmem_size,
+ &error_fatal);
vmstate_register_ram_global(&s->dmem);
s->dmem_ptr = memory_region_get_ram_ptr(&s->dmem);
sysbus_init_mmio(sbd, &s->dmem);
@@ -289,8 +291,10 @@ static const VMStateDescription vmstate_milkymist_softusb = {
};
static Property milkymist_softusb_properties[] = {
- DEFINE_PROP_UINT32("pmem_size", MilkymistSoftUsbState, pmem_size, 0x00001000),
- DEFINE_PROP_UINT32("dmem_size", MilkymistSoftUsbState, dmem_size, 0x00002000),
+ DEFINE_PROP_UINT32("pmem_size", MilkymistSoftUsbState,
+ pmem_size, 0x00001000),
+ DEFINE_PROP_UINT32("dmem_size", MilkymistSoftUsbState,
+ dmem_size, 0x00002000),
DEFINE_PROP_END_OF_LIST(),
};
@@ -101,7 +101,8 @@ struct PXA2xxKeyPadState {
uint32_t kpkdi;
};
-static void pxa27x_keypad_find_pressed_key(PXA2xxKeyPadState *kp, int *row, int *col)
+static void pxa27x_keypad_find_pressed_key(PXA2xxKeyPadState *kp, int *row,
+ int *col)
{
int i;
for (i = 0; i < 4; i++)
@@ -61,7 +61,8 @@ void virtio_input_send(VirtIOInput *vinput, virtio_input_event *event)
for (i = 0; i < vinput->qindex; i++) {
elem = vinput->queue[i].elem;
len = iov_from_buf(elem->in_sg, elem->in_num,
- 0, &vinput->queue[i].event, sizeof(virtio_input_event));
+ 0, &vinput->queue[i].event,
+ sizeof(virtio_input_event));
virtqueue_push(vinput->evt, elem, len);
g_free(elem);
}
By using scripts/checkpatch.pl, it is found that many files in hw/input/ contain lines with more than 80 characters. Signed-off-by: Gan Qixin <ganqixin@huawei.com> --- hw/input/hid.c | 3 ++- hw/input/milkymist-softusb.c | 16 ++++++++++------ hw/input/pxa2xx_keypad.c | 3 ++- hw/input/virtio-input.c | 3 ++- 4 files changed, 16 insertions(+), 9 deletions(-)