media: cec: name for RC passthrough device does not need 'RC for'
authorSean Young <sean@mess.org>
Thu, 4 Oct 2018 22:21:13 +0000 (18:21 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 5 Oct 2018 15:28:13 +0000 (11:28 -0400)
An RC device is does not need to be called 'RC for'. Simply the name
will suffice.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/cec/cec-core.c
include/media/cec.h

index 74596f0..e4edc93 100644 (file)
@@ -307,12 +307,10 @@ struct cec_adapter *cec_allocate_adapter(const struct cec_adap_ops *ops,
                return ERR_PTR(-ENOMEM);
        }
 
-       snprintf(adap->device_name, sizeof(adap->device_name),
-                "RC for %s", name);
        snprintf(adap->input_phys, sizeof(adap->input_phys),
-                "%s/input0", name);
+                "%s/input0", adap->name);
 
-       adap->rc->device_name = adap->device_name;
+       adap->rc->device_name = adap->name;
        adap->rc->input_phys = adap->input_phys;
        adap->rc->input_id.bustype = BUS_CEC;
        adap->rc->input_id.vendor = 0;
index 254a610..3fe5e5d 100644 (file)
@@ -198,9 +198,7 @@ struct cec_adapter {
        u16 phys_addrs[15];
        u32 sequence;
 
-       char device_name[32];
        char input_phys[32];
-       char input_drv[32];
 };
 
 static inline void *cec_get_drvdata(const struct cec_adapter *adap)