diff mbox series

[09/10] hw/input/:split some lines containing more than 80 characters

Message ID 20201019203023.658555-10-ganqixin@huawei.com (mailing list archive)
State New, archived
Headers show
Series Fix line over 80 characters warning | expand

Commit Message

Gan Qixin Oct. 19, 2020, 8:30 p.m. UTC
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(-)
diff mbox series

Patch

diff --git a/hw/input/hid.c b/hw/input/hid.c
index 89239b5634..f3074e3b07 100644
--- a/hw/input/hid.c
+++ b/hw/input/hid.c
@@ -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 {
diff --git a/hw/input/milkymist-softusb.c b/hw/input/milkymist-softusb.c
index 5acd7a6f7d..7f7a87be28 100644
--- a/hw/input/milkymist-softusb.c
+++ b/hw/input/milkymist-softusb.c
@@ -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(),
 };
 
diff --git a/hw/input/pxa2xx_keypad.c b/hw/input/pxa2xx_keypad.c
index 7f2f739fb3..7999fc2430 100644
--- a/hw/input/pxa2xx_keypad.c
+++ b/hw/input/pxa2xx_keypad.c
@@ -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++)
diff --git a/hw/input/virtio-input.c b/hw/input/virtio-input.c
index 54bcb46c74..c7fa659e92 100644
--- a/hw/input/virtio-input.c
+++ b/hw/input/virtio-input.c
@@ -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);
     }