mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
synaptics_mmi: packet registers access support
Access to packet registers was not supported in driver running multiple instances. This commit provides a fix and allows config modifiers to become re-enabled. Change-Id: I20907f5d5c94fa724dbac7412bdfe31c0038a925 Signed-off-by: Konstantin Makariev <hcv867@motorola.com> Reviewed-on: https://gerrit.mot.com/1293968 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
e8783cbd36
commit
a16c8a9386
2 changed files with 563 additions and 616 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -413,6 +413,8 @@ struct synaptics_rmi4_packet_reg {
|
|||
.expected = 1, .size = sz, .data = NULL,\
|
||||
.nr_subpkts = ARRAY_SIZE(s), .subpkt = s}
|
||||
|
||||
#define MAX_CONFIG_REGS 10
|
||||
|
||||
struct synaptics_rmi4_func_packet_regs {
|
||||
unsigned short f_number;
|
||||
unsigned short base_addr;
|
||||
|
|
@ -593,6 +595,8 @@ struct synaptics_rmi4_data {
|
|||
|
||||
struct touch_area_stats touch_ud_stats;
|
||||
struct touch_area_stats button_ud_stats;
|
||||
|
||||
struct synaptics_rmi4_func_packet_regs config_regs[MAX_CONFIG_REGS];
|
||||
};
|
||||
|
||||
struct pdt_properties {
|
||||
|
|
|
|||
Loading…
Reference in a new issue