gpio: pcal9535a: use polling I2C write instead
gpio: pcal9535a: use polling I2C write instead

The polling I2C write function guarantees the write operation
is completed. Given that the initialization routine goes through
I2C write consecutively, we want to make sure each write
has been committed.

Also adds code to configure the I2C controller before transfer.

Change-Id: I2c8888e940edd1cb9fb01f03234a731ac991dfcf
Signed-off-by: Daniel Leung <d94e04d205b5962d7873a139ef298b03c1717f72@intel.com>

GiulianoFranchetto/zephyr,jamesonwilliams/zephyr-kernel,zephyrproject-rtos/zephyr,rsalveti/zephyr,zephyriot/zephyr,punitvara/zephyr,fractalclone/zephyr-riscv,runchip/zephyr-cc3200,mbolivar/zephyr,pklazy/zephyr,kraj/zephyr,zephyriot/zephyr,bboozzoo/zephyr,Vudentz/zephyr,explora26/zephyr,tidyjiang8/zephyr-doc,galak/zephyr,sharronliu/zephyr,bigdinotech/zephyr,tidyjiang8/zephyr-doc,32bitmicro/zephyr,explora26/zephyr,runchip/zephyr-cc3220,nashif/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,fbsder/zephyr,fbsder/zephyr,explora26/zephyr,aceofall/zephyr-iotos,runchip/zephyr-cc3220,galak/zephyr,punitvara/zephyr,mbolivar/zephyr,fractalclone/zephyr-riscv,rsalveti/zephyr,bigdinotech/zephyr,aceofall/zephyr-iotos,GiulianoFranchetto/zephyr,tidyjiang8/zephyr-doc,ldts/zephyr,zephyrproject-rtos/zephyr,runchip/zephyr-cc3200,holtmann/zephyr,aceofall/zephyr-iotos,aceofall/zephyr-iotos,finikorg/zephyr,erwango/zephyr,punitvara/zephyr,ldts/zephyr,fractalclone/zephyr-riscv,holtmann/zephyr,finikorg/zephyr,aceofall/zephyr-iotos,rsalveti/zephyr,pklazy/zephyr,mirzak/zephyr-os,fractalclone/zephyr-riscv,fbsder/zephyr,nashif/zephyr,jamesonwilliams/zephyr-kernel,erwango/zephyr,coldnew/zephyr-project-fork,rsalveti/zephyr,jamesonwilliams/zephyr-kernel,tidyjiang8/zephyr-doc,explora26/zephyr,pklazy/zephyr,runchip/zephyr-cc3200,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,32bitmicro/zephyr,holtmann/zephyr,tidyjiang8/zephyr-doc,explora26/zephyr,pklazy/zephyr,bigdinotech/zephyr,kraj/zephyr,sharronliu/zephyr,punitvara/zephyr,32bitmicro/zephyr,erwango/zephyr,finikorg/zephyr,ldts/zephyr,pklazy/zephyr,bigdinotech/zephyr,Vudentz/zephyr,coldnew/zephyr-project-fork,runchip/zephyr-cc3220,bboozzoo/zephyr,zephyriot/zephyr,nashif/zephyr,bigdinotech/zephyr,ldts/zephyr,fbsder/zephyr,galak/zephyr,mirzak/zephyr-os,holtmann/zephyr,GiulianoFranchetto/zephyr,mirzak/zephyr-os,holtmann/zephyr,kraj/zephyr,kraj/zephyr,kraj/zephyr,punitvara/zephyr,bboozzoo/zephyr,galak/zephyr,jamesonwilliams/zephyr-kernel,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,sharronliu/zephyr,fbsder/zephyr,bboozzoo/zephyr,runchip/zephyr-cc3200,zephyriot/zephyr,runchip/zephyr-cc3220,fractalclone/zephyr-riscv,erwango/zephyr,galak/zephyr,nashif/zephyr,nashif/zephyr,mirzak/zephyr-os,erwango/zephyr,mbolivar/zephyr,coldnew/zephyr-project-fork,sharronliu/zephyr,ldts/zephyr,32bitmicro/zephyr,Vudentz/zephyr,mbolivar/zephyr,Vudentz/zephyr,runchip/zephyr-cc3220,32bitmicro/zephyr,runchip/zephyr-cc3200,bboozzoo/zephyr,rsalveti/zephyr,sharronliu/zephyr,coldnew/zephyr-project-fork,mirzak/zephyr-os,finikorg/zephyr,mbolivar/zephyr,Vudentz/zephyr,coldnew/zephyr-project-fork,jamesonwilliams/zephyr-kernel,zephyriot/zephyr