HID: intel-ish-hid: Hide members of struct ishtp_cl_device
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 18 Mar 2019 19:14:20 +0000 (12:14 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 19 Mar 2019 10:57:23 +0000 (11:57 +0100)
commit7ab2184246bd0b32e427ff60bfa07a2435011ce2
treec6a8d86374b53036a2b015ed40969ded26f4c0cd
parent6b3f75f75fdd225f8c5927b938c29bd24c21fc1b
HID: intel-ish-hid: Hide members of struct ishtp_cl_device

ISH clients don't need to access any field of struct ishtp_cl_device. To
avoid this create an interface functions instead where it is required.
In the case of ishtp_cl_allocate(), modify the parameters so that the
clients don't have to dereference.
Clients can also use tracing, here a new interface is added to get the
common trace function pointer, instead of direct call.
The new interface functions defined in one external header file, named
intel-ish-client-if.h. This is the only header files all ISHTP clients
must include.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ishtp-hid-client.c
drivers/hid/intel-ish-hid/ishtp-hid.c
drivers/hid/intel-ish-hid/ishtp-hid.h
drivers/hid/intel-ish-hid/ishtp/bus.c
drivers/hid/intel-ish-hid/ishtp/client.c
drivers/hid/intel-ish-hid/ishtp/client.h
include/linux/intel-ish-client-if.h [new file with mode: 0644]