]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: aggregator: Remove trailing comma in terminator entries
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 22 Jan 2021 12:38:53 +0000 (14:38 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:32 +0000 (11:43 +0100)
Remove trailing comma in terminator entries to avoid potential
expanding an array behind it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/gpio/gpio-aggregator.c

index 13e473c97ce4303abfce77763f67d420cff7fb6e..08171431bb8f6162e92e0feff1f276c4f465712b 100644 (file)
@@ -243,7 +243,7 @@ static DRIVER_ATTR_WO(delete_device);
 static struct attribute *gpio_aggregator_attrs[] = {
        &driver_attr_new_device.attr,
        &driver_attr_delete_device.attr,
-       NULL,
+       NULL
 };
 ATTRIBUTE_GROUPS(gpio_aggregator);
 
@@ -517,7 +517,7 @@ static const struct of_device_id gpio_aggregator_dt_ids[] = {
         * Add GPIO-operated devices controlled from userspace below,
         * or use "driver_override" in sysfs
         */
-       {},
+       {}
 };
 MODULE_DEVICE_TABLE(of, gpio_aggregator_dt_ids);
 #endif