Input: atmel_mxt_ts - only allow root to update firmware
authorDaniel Kurtz <djkurtz@chromium.org>
Wed, 9 May 2012 05:30:14 +0000 (22:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 11 May 2012 03:39:05 +0000 (20:39 -0700)
commit71b3e938cb97f6cf324fb5aaca46d8e400dc38f0
tree42ec7e0e5588e5d042dcd44bb77057b09f4c4f3d
parent3a73c8169e4f56c1161a95985b8489dd04a7bcbe
Input: atmel_mxt_ts - only allow root to update firmware

Restrict permissions on the update_fw sysfs entry to read only for root
only.

Also, update object permission to use a macro S_IRUGO macro instead of
hard coded 0444.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Acked-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/atmel_mxt_ts.c