diff options
author | Sean Young | 2017-07-01 18:13:19 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2017-08-20 15:43:52 +0200 |
commit | 518f4b26be1ebf6ce220c4e37b5c7e5410c4d064 (patch) | |
tree | d5f52b67b2c8635687f223a1a3454b737d5637e0 /drivers/media/common/siano | |
parent | media: rc: constify attribute_group structures (diff) | |
download | kernel-qcow2-linux-518f4b26be1ebf6ce220c4e37b5c7e5410c4d064.tar.gz kernel-qcow2-linux-518f4b26be1ebf6ce220c4e37b5c7e5410c4d064.tar.xz kernel-qcow2-linux-518f4b26be1ebf6ce220c4e37b5c7e5410c4d064.zip |
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>
Diffstat (limited to 'drivers/media/common/siano')
-rw-r--r-- | drivers/media/common/siano/smsir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/common/siano/smsir.c b/drivers/media/common/siano/smsir.c index 7c898b06d85c..941c342896cc 100644 --- a/drivers/media/common/siano/smsir.c +++ b/drivers/media/common/siano/smsir.c @@ -73,7 +73,7 @@ int sms_ir_init(struct smscore_device_t *coredev) strlcpy(coredev->ir.phys, coredev->devpath, sizeof(coredev->ir.phys)); strlcat(coredev->ir.phys, "/ir0", sizeof(coredev->ir.phys)); - dev->input_name = coredev->ir.name; + dev->device_name = coredev->ir.name; dev->input_phys = coredev->ir.phys; dev->dev.parent = coredev->device; @@ -91,7 +91,7 @@ int sms_ir_init(struct smscore_device_t *coredev) dev->driver_name = MODULE_NAME; pr_debug("Input device (IR) %s is set for key events\n", - dev->input_name); + dev->device_name); err = rc_register_device(dev); if (err < 0) { |