From: Heiner Kallweit Date: Mon, 8 Feb 2016 19:25:59 +0000 (-0200) Subject: [media] media: rc: nuvoton: support reading / writing wakeup sequence via sysfs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=449c1fcd86f5077d5076a955e65c07a7c4cbbf9d;p=linux-beck.git [media] media: rc: nuvoton: support reading / writing wakeup sequence via sysfs This patch adds a binary attribute /sys/class/rc/rc?/wakeup_data which allows to read / write the wakeup sequence. In combination with the core extension for exposing the most recent raw packet this allows to easily define and set a wakeup sequence. At least on my Zotac CI321 the BIOS resets the wakeup sequence at each boot to a factory default. Therefore I use a udev rule SUBSYSTEM=="rc", DRIVERS=="nuvoton-cir", ACTION=="add", RUN+="