Input: ims-pcu - add commands supported by the new version of the FW
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Wed, 12 Feb 2014 23:02:14 +0000 (15:02 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 12 Feb 2014 23:09:48 +0000 (15:09 -0800)
commite5fcd269c4599c4d224333b20e3ffd5e910d4db3
tree60b33654aeff061f5b588d8d404101e79f7a3279
parentad7647d92f61c6e78bf6dc3804da1e2acf0515b6
Input: ims-pcu - add commands supported by the new version of the FW

New version of the PCU firmware supports two new commands:
  - IMS_PCU_CMD_OFN_SET_CONFIG which allows to write data to the
  registers of one finger navigation(OFN) chip present on the device
  - IMS_PCU_CMD_OFN_GET_CONFIG which allows to read data form the
  registers of said chip.

This commit adds two helper functions to use those commands and sysfs
attributes to use them. It also exposes some OFN configuration
parameters via sysfs.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/ims-pcu.c