media: dvb_frontend: get rid of set_property() callback
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 5 Jun 2020 16:25:06 +0000 (09:25 -0700)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:38:34 +0000 (15:38 -0400)
commit 6680e73b5226114992acfc11f9cf5730f706fb01 upstream

Now that all clients of set_property() were removed, get rid
of this callback.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/dvb-core/dvb_frontend.c
drivers/media/dvb-core/dvb_frontend.h

index 97c825f97b15e3bcbd3267e6ff9357d0a9af51fb..2bf55a786e297fc07224a98ac804b3e5a2187cfe 100644 (file)
@@ -1751,13 +1751,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 57cedbe5c2c79dbc09046c107edb41637bf82cd3..f852f0a49f422ca791efefb5cab31e10afe1d52b 100644 (file)
@@ -397,11 +397,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];
@@ -459,8 +456,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__