staging: greybus: fix "line over 80 characters" coding style issues
authorGioh Kim <gi-oh.kim@profitbricks.com>
Thu, 9 Feb 2017 16:30:11 +0000 (17:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Feb 2017 12:26:14 +0000 (13:26 +0100)
This patch fixes only obvious lines.
There are still more issues.

Signed-off-by: Gioh Kim <gi-oh.kim@profitbricks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/arche-apb-ctrl.c
drivers/staging/greybus/arche-platform.c
drivers/staging/greybus/audio_codec.c
drivers/staging/greybus/bootrom.c
drivers/staging/greybus/es2.c
drivers/staging/greybus/fw-download.c
drivers/staging/greybus/gbphy.c
drivers/staging/greybus/gpio.c
drivers/staging/greybus/svc.c
drivers/staging/greybus/uart.c
drivers/staging/greybus/vibrator.c

index 17fa29061e5b72c0d476d31bc2098015c1ab04f2..02243b4fd898cdc868adce3d04368902f9224d00 100644 (file)
@@ -168,7 +168,10 @@ static int standby_boot_seq(struct platform_device *pdev)
        if (apb->init_disabled)
                return 0;
 
-       /* Even if it is in OFF state, then we do not want to change the state */
+       /*
+        * Even if it is in OFF state,
+        * then we do not want to change the state
+        */
        if (apb->state == ARCHE_PLATFORM_STATE_STANDBY ||
                        apb->state == ARCHE_PLATFORM_STATE_OFF)
                return 0;
index 338c2d3ee8421335f7f6e3b89779246fb92a159f..aac1145f19838b125f38af8801963477258be3c2 100644 (file)
@@ -312,9 +312,11 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid)
                if (arche_pdata->wake_detect_state == WD_STATE_IDLE) {
                        arche_pdata->wake_detect_start = jiffies;
                        /*
-                        * In the begining, when wake/detect goes low (first time), we assume
-                        * it is meant for coldboot and set the flag. If wake/detect line stays low
-                        * beyond 30msec, then it is coldboot else fallback to standby boot.
+                        * In the begining, when wake/detect goes low
+                        * (first time), we assume it is meant for coldboot
+                        * and set the flag. If wake/detect line stays low
+                        * beyond 30msec, then it is coldboot else fallback
+                        * to standby boot.
                         */
                        arche_platform_set_wake_detect_state(arche_pdata,
                                                             WD_STATE_BOOT_INIT);
@@ -330,7 +332,8 @@ exit:
 /*
  * Requires arche_pdata->platform_state_mutex to be held
  */
-static int arche_platform_coldboot_seq(struct arche_platform_drvdata *arche_pdata)
+static int
+arche_platform_coldboot_seq(struct arche_platform_drvdata *arche_pdata)
 {
        int ret;
 
@@ -364,7 +367,8 @@ static int arche_platform_coldboot_seq(struct arche_platform_drvdata *arche_pdat
 /*
  * Requires arche_pdata->platform_state_mutex to be held
  */
-static int arche_platform_fw_flashing_seq(struct arche_platform_drvdata *arche_pdata)
+static int
+arche_platform_fw_flashing_seq(struct arche_platform_drvdata *arche_pdata)
 {
        int ret;
 
@@ -398,7 +402,8 @@ static int arche_platform_fw_flashing_seq(struct arche_platform_drvdata *arche_p
 /*
  * Requires arche_pdata->platform_state_mutex to be held
  */
-static void arche_platform_poweroff_seq(struct arche_platform_drvdata *arche_pdata)
+static void
+arche_platform_poweroff_seq(struct arche_platform_drvdata *arche_pdata)
 {
        unsigned long flags;
 
@@ -561,14 +566,17 @@ static int arche_platform_probe(struct platform_device *pdev)
        struct device_node *np = dev->of_node;
        int ret;
 
-       arche_pdata = devm_kzalloc(&pdev->dev, sizeof(*arche_pdata), GFP_KERNEL);
+       arche_pdata = devm_kzalloc(&pdev->dev, sizeof(*arche_pdata),
+                                  GFP_KERNEL);
        if (!arche_pdata)
                return -ENOMEM;
 
        /* setup svc reset gpio */
        arche_pdata->is_reset_act_hi = of_property_read_bool(np,
                                        "svc,reset-active-high");
-       arche_pdata->svc_reset_gpio = of_get_named_gpio(np, "svc,reset-gpio", 0);
+       arche_pdata->svc_reset_gpio = of_get_named_gpio(np,
+                                                       "svc,reset-gpio",
+                                                       0);
        if (arche_pdata->svc_reset_gpio < 0) {
                dev_err(dev, "failed to get reset-gpio\n");
                return arche_pdata->svc_reset_gpio;
@@ -610,7 +618,8 @@ static int arche_platform_probe(struct platform_device *pdev)
                dev_err(dev, "failed to get svc clock-req gpio\n");
                return arche_pdata->svc_refclk_req;
        }
-       ret = devm_gpio_request(dev, arche_pdata->svc_refclk_req, "svc-clk-req");
+       ret = devm_gpio_request(dev, arche_pdata->svc_refclk_req,
+                               "svc-clk-req");
        if (ret) {
                dev_err(dev, "failed to request svc-clk-req gpio: %d\n", ret);
                return ret;
@@ -634,13 +643,16 @@ static int arche_platform_probe(struct platform_device *pdev)
        arche_pdata->num_apbs = of_get_child_count(np);
        dev_dbg(dev, "Number of APB's available - %d\n", arche_pdata->num_apbs);
 
-       arche_pdata->wake_detect_gpio = of_get_named_gpio(np, "svc,wake-detect-gpio", 0);
+       arche_pdata->wake_detect_gpio = of_get_named_gpio(np,
+                                                         "svc,wake-detect-gpio",
+                                                         0);
        if (arche_pdata->wake_detect_gpio < 0) {
                dev_err(dev, "failed to get wake detect gpio\n");
                return arche_pdata->wake_detect_gpio;
        }
 
-       ret = devm_gpio_request(dev, arche_pdata->wake_detect_gpio, "wake detect");
+       ret = devm_gpio_request(dev, arche_pdata->wake_detect_gpio,
+                               "wake detect");
        if (ret) {
                dev_err(dev, "Failed requesting wake_detect gpio %d\n",
                                arche_pdata->wake_detect_gpio);
@@ -658,10 +670,11 @@ static int arche_platform_probe(struct platform_device *pdev)
                gpio_to_irq(arche_pdata->wake_detect_gpio);
 
        ret = devm_request_threaded_irq(dev, arche_pdata->wake_detect_irq,
-                       arche_platform_wd_irq,
-                       arche_platform_wd_irq_thread,
-                       IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING | IRQF_ONESHOT,
-                       dev_name(dev), arche_pdata);
+                                       arche_platform_wd_irq,
+                                       arche_platform_wd_irq_thread,
+                                       IRQF_TRIGGER_FALLING |
+                                       IRQF_TRIGGER_RISING | IRQF_ONESHOT,
+                                       dev_name(dev), arche_pdata);
        if (ret) {
                dev_err(dev, "failed to request wake detect IRQ %d\n", ret);
                return ret;
index 30941f9e380dc339ba57b0a4a9d8122656e026cd..25c8bb4cb0de7dbba8d105e53195344237803ad9 100644 (file)
@@ -838,7 +838,10 @@ int gbaudio_register_module(struct gbaudio_module_info *module)
                snd_soc_dapm_link_component_dai_widgets(codec->card,
                                                        &codec->dapm);
 #ifdef CONFIG_SND_JACK
-               /* register jack devices for this module from codec->jack_list */
+               /*
+                * register jack devices for this module
+                * from codec->jack_list
+                */
                list_for_each_entry(jack, &codec->jack_list, list) {
                        if ((jack == &module->headset_jack)
                            || (jack == &module->button_jack))
index 5f90721bcc51503dcd8cf2d2561e55239e6ac404..06df0ce03150f28ae11b39d587b12739c13be5c9 100644 (file)
@@ -53,7 +53,8 @@ static void free_firmware(struct gb_bootrom *bootrom)
 static void gb_bootrom_timedout(struct work_struct *work)
 {
        struct delayed_work *dwork = to_delayed_work(work);
-       struct gb_bootrom *bootrom = container_of(dwork, struct gb_bootrom, dwork);
+       struct gb_bootrom *bootrom = container_of(dwork,
+                                                 struct gb_bootrom, dwork);
        struct device *dev = &bootrom->connection->bundle->dev;
        const char *reason;
 
@@ -187,7 +188,8 @@ static int find_firmware(struct gb_bootrom *bootrom, u8 stage)
 static int gb_bootrom_firmware_size_request(struct gb_operation *op)
 {
        struct gb_bootrom *bootrom = gb_connection_get_data(op->connection);
-       struct gb_bootrom_firmware_size_request *size_request = op->request->payload;
+       struct gb_bootrom_firmware_size_request *size_request =
+               op->request->payload;
        struct gb_bootrom_firmware_size_response *size_response;
        struct device *dev = &op->connection->bundle->dev;
        int ret;
@@ -220,7 +222,8 @@ static int gb_bootrom_firmware_size_request(struct gb_operation *op)
        size_response = op->response->payload;
        size_response->size = cpu_to_le32(bootrom->fw->size);
 
-       dev_dbg(dev, "%s: firmware size %d bytes\n", __func__, size_response->size);
+       dev_dbg(dev, "%s: firmware size %d bytes\n",
+               __func__, size_response->size);
 
 unlock:
        mutex_unlock(&bootrom->mutex);
@@ -287,8 +290,8 @@ static int gb_bootrom_get_firmware(struct gb_operation *op)
        firmware_response = op->response->payload;
        memcpy(firmware_response->data, fw->data + offset, size);
 
-       dev_dbg(dev, "responding with firmware (offs = %u, size = %u)\n", offset,
-               size);
+       dev_dbg(dev, "responding with firmware (offs = %u, size = %u)\n",
+               offset, size);
 
 unlock:
        mutex_unlock(&bootrom->mutex);
index 93afd9374f0470adcf3afa1f67a088527a6d5266..0eba059b3a9c1bbc09147520ee3b24f4c8613d2b 100644 (file)
@@ -1085,7 +1085,8 @@ static void apb_log_get(struct es2_ap_dev *es2, char *buf)
                retval = usb_control_msg(es2->usb_dev,
                                        usb_rcvctrlpipe(es2->usb_dev, 0),
                                        GB_APB_REQUEST_LOG,
-                                       USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
+                                       USB_DIR_IN | USB_TYPE_VENDOR |
+                                       USB_RECIP_INTERFACE,
                                        0x00, 0x00,
                                        buf,
                                        APB1_LOG_MSG_SIZE,
index 2d7246887547255fcfe25d826e69eaafdb0d7b74..8a1a413c6cb38f87b95fe4873465cd13ae99456f 100644 (file)
@@ -130,7 +130,8 @@ static void free_firmware(struct fw_download *fw_download,
 static void fw_request_timedout(struct work_struct *work)
 {
        struct delayed_work *dwork = to_delayed_work(work);
-       struct fw_request *fw_req = container_of(dwork, struct fw_request, dwork);
+       struct fw_request *fw_req = container_of(dwork,
+                                                struct fw_request, dwork);
        struct fw_download *fw_download = fw_req->fw_download;
 
        dev_err(fw_download->parent,
@@ -239,7 +240,8 @@ static int fw_download_find_firmware(struct gb_operation *op)
        tag = (const char *)request->firmware_tag;
 
        /* firmware_tag must be null-terminated */
-       if (strnlen(tag, GB_FIRMWARE_TAG_MAX_SIZE) == GB_FIRMWARE_TAG_MAX_SIZE) {
+       if (strnlen(tag, GB_FIRMWARE_TAG_MAX_SIZE) ==
+           GB_FIRMWARE_TAG_MAX_SIZE) {
                dev_err(fw_download->parent,
                        "firmware-tag is not null-terminated\n");
                return -EINVAL;
index bcde7c9a0f172184ddb8b15beb505105ef931c51..64a1eb93ec9669f9d805ac184b65bece9460c28b 100644 (file)
@@ -104,7 +104,8 @@ static int gbphy_dev_uevent(struct device *dev, struct kobj_uevent_env *env)
 }
 
 static const struct gbphy_device_id *
-gbphy_dev_match_id(struct gbphy_device *gbphy_dev, struct gbphy_driver *gbphy_drv)
+gbphy_dev_match_id(struct gbphy_device *gbphy_dev,
+                  struct gbphy_driver *gbphy_drv)
 {
        const struct gbphy_device_id *id = gbphy_drv->id_table;
 
index 558550cfe687bad3d75619149561d380fd86bf95..0eabfe1135b51be06b685c4bc5fef478277c22d2 100644 (file)
@@ -557,7 +557,8 @@ static void gb_gpio_irqchip_remove(struct gb_gpio_controller *ggc)
        /* Remove all IRQ mappings and delete the domain */
        if (ggc->irqdomain) {
                for (offset = 0; offset < (ggc->line_max + 1); offset++)
-                       irq_dispose_mapping(irq_find_mapping(ggc->irqdomain, offset));
+                       irq_dispose_mapping(irq_find_mapping(ggc->irqdomain,
+                                                            offset));
                irq_domain_remove(ggc->irqdomain);
        }
 
index be151a64ea0331194b8f73bb4223200d2e2cda4c..5549db2fc7490d5792452cc0b0f7e65186024cff 100644 (file)
@@ -678,7 +678,8 @@ static int gb_svc_version_request(struct gb_operation *op)
 static ssize_t pwr_debugfs_voltage_read(struct file *file, char __user *buf,
                                        size_t len, loff_t *offset)
 {
-       struct svc_debugfs_pwrmon_rail *pwrmon_rails = file_inode(file)->i_private;
+       struct svc_debugfs_pwrmon_rail *pwrmon_rails =
+               file_inode(file)->i_private;
        struct gb_svc *svc = pwrmon_rails->svc;
        int ret, desc;
        u32 value;
@@ -701,7 +702,8 @@ static ssize_t pwr_debugfs_voltage_read(struct file *file, char __user *buf,
 static ssize_t pwr_debugfs_current_read(struct file *file, char __user *buf,
                                        size_t len, loff_t *offset)
 {
-       struct svc_debugfs_pwrmon_rail *pwrmon_rails = file_inode(file)->i_private;
+       struct svc_debugfs_pwrmon_rail *pwrmon_rails =
+               file_inode(file)->i_private;
        struct gb_svc *svc = pwrmon_rails->svc;
        int ret, desc;
        u32 value;
@@ -724,7 +726,8 @@ static ssize_t pwr_debugfs_current_read(struct file *file, char __user *buf,
 static ssize_t pwr_debugfs_power_read(struct file *file, char __user *buf,
                                      size_t len, loff_t *offset)
 {
-       struct svc_debugfs_pwrmon_rail *pwrmon_rails = file_inode(file)->i_private;
+       struct svc_debugfs_pwrmon_rail *pwrmon_rails =
+               file_inode(file)->i_private;
        struct gb_svc *svc = pwrmon_rails->svc;
        int ret, desc;
        u32 value;
@@ -924,14 +927,15 @@ static void gb_svc_process_hello_deferred(struct gb_operation *operation)
         * Power Mode Changes is resolved.
         */
        ret = gb_svc_intf_set_power_mode(svc, svc->ap_intf_id,
-                                       GB_SVC_UNIPRO_HS_SERIES_A,
-                                       GB_SVC_UNIPRO_SLOW_AUTO_MODE,
-                                       2, 1,
-                                       GB_SVC_SMALL_AMPLITUDE, GB_SVC_NO_DE_EMPHASIS,
-                                       GB_SVC_UNIPRO_SLOW_AUTO_MODE,
-                                       2, 1,
-                                       0, 0,
-                                       NULL, NULL);
+                                        GB_SVC_UNIPRO_HS_SERIES_A,
+                                        GB_SVC_UNIPRO_SLOW_AUTO_MODE,
+                                        2, 1,
+                                        GB_SVC_SMALL_AMPLITUDE,
+                                        GB_SVC_NO_DE_EMPHASIS,
+                                        GB_SVC_UNIPRO_SLOW_AUTO_MODE,
+                                        2, 1,
+                                        0, 0,
+                                        NULL, NULL);
 
        if (ret)
                dev_warn(&svc->dev,
index 248ad6661a02f01c62613592f1daae55add91128..ab0dbf5cab5aa75b045961f815f913c0427cf357 100644 (file)
@@ -629,8 +629,9 @@ static int get_serial_info(struct gb_tty *gb_tty,
        tmp.xmit_fifo_size = 16;
        tmp.baud_base = 9600;
        tmp.close_delay = gb_tty->port.close_delay / 10;
-       tmp.closing_wait = gb_tty->port.closing_wait == ASYNC_CLOSING_WAIT_NONE ?
-                               ASYNC_CLOSING_WAIT_NONE : gb_tty->port.closing_wait / 10;
+       tmp.closing_wait =
+               gb_tty->port.closing_wait == ASYNC_CLOSING_WAIT_NONE ?
+               ASYNC_CLOSING_WAIT_NONE : gb_tty->port.closing_wait / 10;
 
        if (copy_to_user(info, &tmp, sizeof(tmp)))
                return -EFAULT;
@@ -999,7 +1000,8 @@ static int gb_tty_init(void)
        gb_tty_driver->subtype = SERIAL_TYPE_NORMAL;
        gb_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;
        gb_tty_driver->init_termios = tty_std_termios;
-       gb_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL;
+       gb_tty_driver->init_termios.c_cflag = B9600 | CS8 |
+               CREAD | HUPCL | CLOCAL;
        tty_set_operations(gb_tty_driver, &gb_ops);
 
        retval = tty_register_driver(gb_tty_driver);
index 4ba0e168930f01981abf89b9aa0fe2efd7fdd22c..77a2365a55e6013a370c80973d1e1018af5609fd 100644 (file)
@@ -70,7 +70,9 @@ static void gb_vibrator_worker(struct work_struct *work)
 {
        struct delayed_work *delayed_work = to_delayed_work(work);
        struct gb_vibrator_device *vib =
-               container_of(delayed_work, struct gb_vibrator_device, delayed_work);
+               container_of(delayed_work,
+                            struct gb_vibrator_device,
+                            delayed_work);
 
        turn_off(vib);
 }