diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2016-11-08 17:05:58 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-11-08 17:12:10 -0800 |
commit | 82264d0cf7aef2247563c031ff2ab96579d5d0cc (patch) | |
tree | c98fe0cf05b7557e382a5987eed0815834606b70 /drivers/input/rmi4/rmi_bus.h | |
parent | 332c3988fe9cbecf9d50f19596b66a34b5eda6de (diff) | |
download | linux-82264d0cf7aef2247563c031ff2ab96579d5d0cc.tar.bz2 |
Input: synaptics-rmi4 - add SMBus support
Code obtained from https://raw.githubusercontent.com/mightybigcar/synaptics-rmi4/jf/drivers/input/rmi4/rmi_smbus.c
and updated to match upstream. And fixed to make it work.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/rmi4/rmi_bus.h')
-rw-r--r-- | drivers/input/rmi4/rmi_bus.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/input/rmi4/rmi_bus.h b/drivers/input/rmi4/rmi_bus.h index 899579830536..b7625a9ac66a 100644 --- a/drivers/input/rmi4/rmi_bus.h +++ b/drivers/input/rmi4/rmi_bus.h @@ -105,6 +105,18 @@ rmi_get_platform_data(struct rmi_device *d) bool rmi_is_physical_device(struct device *dev); /** + * rmi_reset - reset a RMI4 device + * @d: Pointer to an RMI device + * + * Calls for a reset of each function implemented by a specific device. + * Returns 0 on success or a negative error code. + */ +static inline int rmi_reset(struct rmi_device *d) +{ + return d->driver->reset_handler(d); +} + +/** * rmi_read - read a single byte * @d: Pointer to an RMI device * @addr: The address to read from |