iio:triggers Protect functions in triggers.h from use when not compiled
Also include a couple of forward defs of struct iio_trigger and struct iio_trigger_ops to avoid doing this in each driver. Signed-off-by: NJonathan Cameron <jic23@kernel.org> Reported-by: NRandy Dunlap <rdunlap@infradead.org> Acked-by: NDenis Ciocca <denis.ciocca@st.com>
Showing
想要评论请 注册 或 登录