Skip to content
Commit e047ce40 authored by Dave Stevenson's avatar Dave Stevenson Committed by popcornmix
Browse files

media: bcm2835-unicam: Replace hard coded loop limit with a define



In order to protect against a dodgy sensor driver never returning
an error from enum_mbus_code there was a hardcoded value of 128
that aborted the loop.
There is a need to call enum_mbus_code from elsewhere, so move that
number to a define so it is common across calls.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.org>
parent 8092dbb1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment