upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:58:47 +0000 (11:58 +0900)
commit12302ea1512f55009d2130e87cc98d4c7b82b68c
treedcfe06bb16a65edb016b2e299c97facc6571332d
parent12d88408d5eb462385b57f50512add7b69d40460
upstream: [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