V4L/DVB: ir-core: Remove magic numbers at the sysfs logic
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 28 Jun 2010 15:37:13 +0000 (12:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:54:35 +0000 (14:54 -0300)
commit4403b7b4eabd3f307c21bfadebe7a1d951d1478b
treeaa5dfb6591a043ee1098fb23c564a0f5a4392827
parent667c9ebe97f7e5f1e48e7eb321644c6fb1668de5
V4L/DVB: ir-core: Remove magic numbers at the sysfs logic

Instead of using "magic" sizes for protocol names, replace them by an
array, and use strlen().

No functional changes.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-sysfs.c