staging: vc04_services: isp: Make all references to bcm2835_isp_fmt const
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 1 May 2020 15:54:20 +0000 (16:54 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:56 +0000 (16:33 +0100)
commitd147a4baf0d36a98e5f30837e502e8146d0af4b3
treef70b29c5039730c18acc44cc2cb4a16a96ec1cf4
parent5430f94b9d173df99b0df8ab27de402f890c40ec
staging: vc04_services: isp: Make all references to bcm2835_isp_fmt const

The array of potential formats and their configuration should be const.
Rework all accesses so that this is possible.

The list of supported formats was taking a copy of entries from this table.
This is unnecessary, therefore allocate an array of pointers instead of
an array of entries.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c
drivers/staging/vc04_services/bcm2835-isp/bcm2835_isp_fmts.h