[media] media: rc: nuvoton: switch attribute wakeup_data to text
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 4 Mar 2016 19:11:40 +0000 (16:11 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 5 Mar 2016 11:22:03 +0000 (08:22 -0300)
commit02212001c95671969d3018691d384db16092eb27
tree0f2d6a2c44ee1b55ffb4a19a6ee06ad4a15490e8
parentfcbafafb7da8dbfbb645ee22cc9fbd52d9553c12
[media] media: rc: nuvoton: switch attribute wakeup_data to text

Switch attribute wakeup_data from binary to a text attribute.
This makes it easier to handle in userspace and allows to
use the output of tools like mode2 almost as is to set a
wakeup sequence.
Changing to a text format and values in microseconds also
makes the userspace interface independent of the setting of
SAMPLE_PERIOD in the driver.

In addition document the new sysfs attribute in
Documentation/ABI/testing/sysfs-class-rc-nuvoton.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Documentation/ABI/testing/sysfs-class-rc-nuvoton [new file with mode: 0644]
drivers/media/rc/nuvoton-cir.c