]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: intel: platform: use semicolon instead of comma in ncommunities assignment
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 26 Sep 2024 14:11:03 +0000 (16:11 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 30 Sep 2024 11:35:23 +0000 (14:35 +0300)
Substitute the comma with a semicolon in the `ncommunities` assignment
for better readability and consistency with common C coding style.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-intel-platform.c

index 2d5ba8278fb9bc04690aaa1c14d0864c1e1c47a6..016a9f62eecc10353fb763c78b6d8bfec241443d 100644 (file)
@@ -158,7 +158,7 @@ static int intel_platform_pinctrl_prepare_soc_data(struct device *dev,
        int ret;
 
        /* Version 1.0 of the specification assumes only a single community per device node */
-       ncommunities = 1,
+       ncommunities = 1;
        communities = devm_kcalloc(dev, ncommunities, sizeof(*communities), GFP_KERNEL);
        if (!communities)
                return -ENOMEM;