summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-picolcd_cir.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2017-07-01 12:13:19 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 09:43:52 -0400
commit518f4b26be1ebf6ce220c4e37b5c7e5410c4d064 (patch)
treed5f52b67b2c8635687f223a1a3454b737d5637e0 /drivers/hid/hid-picolcd_cir.c
parentdb68102c8d5eeea173ae4187b4e581fa146bc094 (diff)
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/hid/hid-picolcd_cir.c')
-rw-r--r--drivers/hid/hid-picolcd_cir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-picolcd_cir.c b/drivers/hid/hid-picolcd_cir.c
index 8ffbb6f65a65..b3b2233f3c65 100644
--- a/drivers/hid/hid-picolcd_cir.c
+++ b/drivers/hid/hid-picolcd_cir.c
@@ -116,7 +116,7 @@ int picolcd_init_cir(struct picolcd_data *data, struct hid_report *report)
rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER;
rdev->open = picolcd_cir_open;
rdev->close = picolcd_cir_close;
- rdev->input_name = data->hdev->name;
+ rdev->device_name = data->hdev->name;
rdev->input_phys = data->hdev->phys;
rdev->input_id.bustype = data->hdev->bus;
rdev->input_id.vendor = data->hdev->vendor;