The flag used for checking the kernel owned gpio line is GPIOLINE_FLAG_KERNEL. Hence use that instead of GPIOLINE_FLAG_IS_OUT. Flag used for checking the open source gpio line is GPIOLINE_FLAG_OPEN_SOURCE. Hence use that instead of GPIOHANDLE_REQUEST_OPEN_SOURCE, which should be only used when requesting lines. Reported-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: malikabhi05 <abhishek.malik@intel.com>