gpio: adjust adv function hooks to fix subplatforms
gpio: adjust adv function hooks to fix subplatforms

The chardev feature changed the flow for most GPIO functions but did not take into account existing function hooks correctly.
This fixes the checks and restores subplatform GPIO access.

Signed-off-by: Mihai Tudor Panu <a27de6130c5d32f5817bf40bb8b348582f37a8af@intel.com>

KurtE/mraa,stefan-andritoiu/mraa,Propanu/mraa,intel-iot-devkit/mraa,g-vidal/mraa,KurtE/mraa,Propanu/mraa,arfoll/mraa,arfoll/mraa,Propanu/mraa,stefan-andritoiu/mraa,yongli3/mraa,g-vidal/mraa,KurtE/mraa,arfoll/mraa,intel-iot-devkit/mraa,yongli3/mraa,Propanu/mraa,KurtE/mraa,intel-iot-devkit/mraa,g-vidal/mraa,stefan-andritoiu/mraa,stefan-andritoiu/mraa,yongli3/mraa,arfoll/mraa,arfoll/mraa,yongli3/mraa,KurtE/mraa,g-vidal/mraa,stefan-andritoiu/mraa,g-vidal/mraa,intel-iot-devkit/mraa,Propanu/mraa,yongli3/mraa,intel-iot-devkit/mraa