summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2018-04-27 07:44:01 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-09 16:20:16 -0400
commit0bade8b54395200b6a08e143e2bdc5b992f883e7 (patch)
treea9928b17692057824370be349130a2f0e2dbf624 /tools/perf/scripts/python/stackcollapse.py
parent03b765237b0f728c2586b557fbfaed86bff7bf07 (diff)
downloadlinux-0bade8b54395200b6a08e143e2bdc5b992f883e7.tar.gz
linux-0bade8b54395200b6a08e143e2bdc5b992f883e7.zip
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions