drivers/gpio: ite: Validate num_pins to prevent untrusted loop bound

Added a build assert to limit num_pins to a maximum allowable value to
prevent potential out-of-bounds access or infinite loops.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
1 file changed