linux_dsm_epyc7002/drivers/media/pci/sta2x11
Arvind Yadav 0bade8b543 media: sta2x11: Use gpio_is_valid() and remove unnecessary check
Replace the manual validity checks for the GPIO with the
gpio_is_valid().

In vip_gpio_reserve(), Error checking for gpio pin is not correct.
If pwr_pin = -1, It will return 0. This should be return an error.

In sta2x11_vip_init_one(), Error checking for gpio 'reset_pin'
is unnecessary. Because vip_gpio_reserve() is also checking for
valid gpio pin. So removed extra error checking for gpio 'reset_pin'.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-09 16:20:16 -04:00
..
Kconfig media: sta2x11_vip: allow build with COMPILE_TEST 2018-05-04 09:14:56 -04:00
Makefile
sta2x11_vip.c media: sta2x11: Use gpio_is_valid() and remove unnecessary check 2018-05-09 16:20:16 -04:00
sta2x11_vip.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00