]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
media: dvb_frontend: get rid of set_property() callback
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 14 Sep 2017 11:44:22 +0000 (07:44 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 11 Oct 2017 16:52:16 +0000 (12:52 -0400)
Now that all clients of set_property() were removed, get rid
of this callback.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-core/dvb_frontend.c
drivers/media/dvb-core/dvb_frontend.h

index cafc51b303e2ec9aaa3b3906a64c1a452bdc9886..730d9901a977afccbdff91e4839c8f5de7dd5d25 100644 (file)
@@ -1749,13 +1749,6 @@ static int dtv_property_process_set(struct dvb_frontend *fe,
        int r = 0;
        struct dtv_frontend_properties *c = &fe->dtv_property_cache;
 
-       /* Allow the frontend to validate incoming properties */
-       if (fe->ops.set_property) {
-               r = fe->ops.set_property(fe, tvp);
-               if (r < 0)
-                       return r;
-       }
-
        dtv_property_dump(fe, true, tvp);
 
        switch(tvp->cmd) {
index 4d05846f2c1c0a643ec95bd779ca8af975cd822e..852b91ba49d279366fe5d0c7151b31af5f66f271 100644 (file)
@@ -401,11 +401,8 @@ 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,8 +461,6 @@ 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__