From: Christian Hoffmann Date: Mon, 6 Feb 2023 20:58:43 +0000 (+0100) Subject: Revert "media: dvb_frontend: get rid of set_property() callback" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ccdbde202847b2638020a47742480efcaaec9ab0;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git Revert "media: dvb_frontend: get rid of set_property() callback" This partially reverts commit 43619b35587ebef4070f5f4d61761766e0e3136a as amlogic relies on it Change-Id: Ia72198b7d64ff1e54d5deedc08964d8cf9729efa --- diff --git a/drivers/media/dvb-core/dvb_frontend.h b/drivers/media/dvb-core/dvb_frontend.h index 6672c4a2e479..e274bddf7d39 100644 --- a/drivers/media/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb-core/dvb_frontend.h @@ -405,8 +405,11 @@ struct dtv_frontend_properties; * @search: callback function used on some custom algo search algos. * @tuner_ops: pointer to struct dvb_tuner_ops * @analog_ops: pointer to struct analog_demod_ops + * @set_property: callback function to allow the frontend to validade + * incoming properties. Should not be used on new drivers. */ struct dvb_frontend_ops { + struct dvb_frontend_info info; u8 delsys[MAX_DELSYS]; @@ -464,6 +467,8 @@ struct dvb_frontend_ops { struct dvb_tuner_ops tuner_ops; struct analog_demod_ops analog_ops; + + int (*set_property)(struct dvb_frontend* fe, struct dtv_property* tvp); }; #ifdef __DVB_CORE__