]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc-main: store_filter: pass errors to userland
authorJames Hogan <james.hogan@imgtec.com>
Mon, 10 Feb 2014 21:31:56 +0000 (18:31 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 15:13:23 +0000 (12:13 -0300)
commita004d21c0342be59ab5bec67772f87601fec9a48
treef6395010073c5232f5dfa22f47f5bd812ed8d79f
parentad0a2eb52b4b4d40a9798f37dcc5476c1cea13e7
[media] rc-main: store_filter: pass errors to userland

Propagate errors returned by drivers from the s_filter callback back to
userland when updating scancode filters. This allows userland to see
when the filter couldn't be updated, usually because it's not a valid
filter for the hardware.

Previously the filter was being updated conditionally on success of
s_filter, but the write always reported success back to userland.

Reported-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/rc-main.c