gpio: tangier: calculate number of ctx using temporary variable
authorRaag Jadav <raag.jadav@intel.com>
Mon, 22 May 2023 04:58:06 +0000 (10:28 +0530)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 23 May 2023 08:22:25 +0000 (10:22 +0200)
commit3b8d8ccc39942cb4eced890c9776567b1e4117eb
tree19836aeb9b5c4af82ed22c245caa2248788b42ca
parentb41cabb7be3c8113af0357366bd5e41a34b05a50
gpio: tangier: calculate number of ctx using temporary variable

Utilize a temporary variable to calculate number of ctx from ngpio
inside ->probe() implementation.
While at it, include math.h for using DIV_ROUND_UP().

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-tangier.c