Re: [PATCH] input: gpio-keys: report error when invalid key number

2015-08-24 Thread Dmitry Torokhov
On Mon, Aug 24, 2015 at 08:07:44PM +0800, Peng Fan wrote: > When the input key number is not valid one of > '/sys/devices/soc0/gpio-keys/keys', need to report > an error, but not continue. > > See the following example: > root@yocto:/sys/devices/soc0/gpio-keys# cat keys > 114-116 > root@yocto:/sys

[PATCH] input: gpio-keys: report error when invalid key number

2015-08-24 Thread Peng Fan
When the input key number is not valid one of '/sys/devices/soc0/gpio-keys/keys', need to report an error, but not continue. See the following example: root@yocto:/sys/devices/soc0/gpio-keys# cat keys 114-116 root@yocto:/sys/devices/soc0/gpio-keys# echo 77 > keys root@yocto:/sys/devices/soc0/gpio-