OSDN Git Service

staging: media: allegro: align with parenthesis
authorKaaira Gupta <kgupta@es.iitr.ac.in>
Fri, 13 Mar 2020 21:54:03 +0000 (03:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 13:14:51 +0000 (14:14 +0100)
Align the lines of allegro-core.c with open parenthesis by giving proper
tabs and thereby fix checkpatch.pl warnings of matching alignment with
open parenthesis. Do it only for lines where character limit doesn't
exceed 80 characters.

Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200313215406.2485-2-kgupta@es.iitr.ac.in
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/allegro-dvt/allegro-core.c

index 0a09b36..1162cc3 100644 (file)
@@ -2324,10 +2324,10 @@ static int allegro_open(struct file *file)
                        0, ALLEGRO_GOP_SIZE_MAX,
                        1, channel->gop_size);
        v4l2_ctrl_new_std(handler,
-                       &allegro_ctrl_ops,
-                       V4L2_CID_MIN_BUFFERS_FOR_OUTPUT,
-                       1, 32,
-                       1, 1);
+                         &allegro_ctrl_ops,
+                         V4L2_CID_MIN_BUFFERS_FOR_OUTPUT,
+                         1, 32,
+                         1, 1);
        channel->fh.ctrl_handler = handler;
 
        channel->mcu_channel_id = -1;
@@ -2933,8 +2933,8 @@ static int allegro_probe(struct platform_device *pdev)
                return -EINVAL;
        }
        sram_regs = devm_ioremap(&pdev->dev,
-                                        sram_res->start,
-                                        resource_size(sram_res));
+                                sram_res->start,
+                                resource_size(sram_res));
        if (IS_ERR(sram_regs)) {
                dev_err(&pdev->dev, "failed to map sram\n");
                return PTR_ERR(sram_regs);