leds: simatic-ipc-leds-gpio: Add terminating entries to gpio tables
authorHenning Schild <henning.schild@siemens.com>
Wed, 24 May 2023 12:46:25 +0000 (14:46 +0200)
committerLee Jones <lee@kernel.org>
Thu, 8 Jun 2023 17:29:20 +0000 (18:29 +0100)
commit8aee49eb939daeedab96a9a38e956ff9c81d4f08
tree5e1bcfed19ef86c7fde701bc0c23644620050566
parentb3f4b679ff427bba8208177ea52cc39128995f62
leds: simatic-ipc-leds-gpio: Add terminating entries to gpio tables

The entries do not seem to be stricly needed when the number of entries
is given via the number of LEDs. But adding them is a safeguard should
anyone ever iterate over the tables to their end, it also gets us in
line with other drivers that register "leds-gpio" tables.

Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Henning Schild <henning.schild@siemens.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230524124628.32295-2-henning.schild@siemens.com
drivers/leds/simple/simatic-ipc-leds-gpio.c