]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite57befa3bcd26717762c45b734df49011643db29
treeaa5dfb6591a043ee1098fb23c564a0f5a4392827
parent86685a377d249c37502272ff3c9232e027dfe2d3
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