- Drivers should be able to override properties returned to the user.
- The default values get prefilled from the cache.
Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
                                    struct dtv_property *tvp,
                                    struct file *file)
 {
-       int r = 0;
-
-       /* Allow the frontend to validate incoming properties */
-       if (fe->ops.get_property)
-               r = fe->ops.get_property(fe, tvp);
-
-       if (r < 0)
-               return r;
+       int r;
 
        switch(tvp->cmd) {
        case DTV_FREQUENCY:
                return -EINVAL;
        }
 
+       /* Allow the frontend to override outgoing properties */
+       if (fe->ops.get_property) {
+               r = fe->ops.get_property(fe, tvp);
+               if (r < 0)
+                       return r;
+       }
+
        dtv_property_dump(tvp);
 
        return 0;