can: peak_usb: use ARRAY_SIZE instead of NULL termination for peak_usb_adapters_list
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 27 Jan 2015 15:58:17 +0000 (16:58 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 28 Jan 2015 13:47:05 +0000 (14:47 +0100)
commit0adfd7335b622ca3cac94810487db470f57892fc
tree8bd7fa74f023a7a0429b422a4034b470347285d8
parentf5d4abea3ce0747ba2b5061dbc99c6f3149c4ba4
can: peak_usb: use ARRAY_SIZE instead of NULL termination for peak_usb_adapters_list

This patch converts the list "static struct peak_usb_adapter
*peak_usb_adapters_list[]" to be used with ARRAY_SIZE not with a NULL
termination, as the size is known during compile time.

Acked-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb_core.c