media: rc-core: rename input_name to device_name
When an ir-spi is registered, you get this message. rc rc0: Unspecified device as /devices/platform/soc/3f215080.spi/spi_master/spi32766/spi32766.128/rc/rc0 "Unspecified device" refers to input_name, which makes no sense for IR TX only devices. So, rename to device_name. Also make driver_name const char* so that no casts are needed anywhere. Now ir-spi reports: rc rc0: IR SPI as /devices/platform/soc/3f215080.spi/spi_master/spi32766/spi32766.128/rc/rc0 Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
db68102c8d
commit
518f4b26be
@@ -458,7 +458,7 @@ int tm6000_ir_init(struct tm6000_core *dev)
|
||||
rc_type = RC_BIT_UNKNOWN;
|
||||
tm6000_ir_change_protocol(rc, &rc_type);
|
||||
|
||||
rc->input_name = ir->name;
|
||||
rc->device_name = ir->name;
|
||||
rc->input_phys = ir->phys;
|
||||
rc->input_id.bustype = BUS_USB;
|
||||
rc->input_id.version = 1;
|
||||
|
Reference in New Issue
Block a user