Input: pcspkr - fix code style and error value in pcspkr_event
authorMunir Contractor <munircontractor@gmail.com>
Tue, 15 Aug 2017 05:02:08 +0000 (22:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 15 Aug 2017 05:12:05 +0000 (22:12 -0700)
commit9e04b79ce432b8be2419dc52021afb6f07b78540
tree64228b20e4d7e59fc7b64a6eff65469b2fb0f279
parent2e53d52c0108f03fb9fc67419c20a0b31acade52
Input: pcspkr - fix code style and error value in pcspkr_event

This patch fixes the following issues in pcspkr:

* Return -EINVAL when input arguments are not valid in pcspkr_event
  function instead of -1.
* Replace <asm/io.h> with <linux/io.h>
* Fix indentation of case blocks in switch statement
* Reduce length of line 28 to less than 80 characters

The style issues were discovered by checkpatch.pl script.

Signed-off-by: Munir Contractor <munircontractor@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pcspkr.c