remote: Add a setup of user remote wakeup decode type

Change-Id: Ib7bb759dfec67433b596ed64997f6894d1c7ec27
This commit is contained in:
Joy Cho
2019-03-13 09:57:04 +09:00
parent d6c634e62f
commit e6c52c1843
2 changed files with 6 additions and 0 deletions

View File

@@ -484,6 +484,9 @@ static int ir_get_devtree_pdata(struct platform_device *pdev)
chip->protocol = 1;
}
dev_info(chip->dev, "protocol = 0x%x\n", chip->protocol);
#if defined(CONFIG_IR_HK_LIRC_HELPER)
remote_wakeup_decode_type(chip->protocol);
#endif
ret = of_property_read_u32(pdev->dev.of_node,
"led_blink", &chip->r_dev->led_blink);

View File

@@ -199,4 +199,7 @@ int ir_scancode_sort(struct ir_map_tab *ir_map);
struct ir_map_tab_list *seek_map_tab(struct remote_chip *chip, int custom_code);
void ir_tab_free(struct ir_map_tab_list *ir_map_list);
#if defined(CONFIG_IR_HK_LIRC_HELPER)
extern void remote_wakeup_decode_type(int dec_type);
#endif
#endif