]> asedeno.scripts.mit.edu Git - linux.git/commit
[media] st_rc: simplify optional reset handling
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 15 Mar 2017 11:31:36 +0000 (08:31 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 24 Mar 2017 11:29:27 +0000 (08:29 -0300)
commitec6b0bd54e00beabfdf45d1f3aba8dfb79f52b53
tree2f827fe07b944c62c2fbd809f3e7e33ce414ebb9
parent03eb2a557ed552e920a0942b774aaf931596eec1
[media] st_rc: simplify optional reset handling

As of commit bb475230b8e5 ("reset: make optional functions really
optional"), the reset framework API calls use NULL pointers to describe
optional, non-present reset controls.

This allows to return errors from reset_control_get_optional and to call
reset_control_(de)assert unconditionally.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/st_rc.c