History

HID: intel-ish-hid: Add interface functions for struct ishtp_cl

Instead of directly accessing members of struct ishtp_cl, create interface functions to access them.

Srinivas Pandruvada committed 7 years ago

Commit 51cbc701 parent 8991eb32 files · +49 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/intel-ish-client-if.h+7−0
@@ -87,5 +87,12 @@ int ishtp_cl_flush_queues(struct ishtp_cl *cl); · 86 unmodified lines
87int ishtp_cl_io_rb_recycle(struct ishtp_cl_rb *rb);87int ishtp_cl_io_rb_recycle(struct ishtp_cl_rb *rb);
88bool ishtp_cl_tx_empty(struct ishtp_cl *cl);88bool ishtp_cl_tx_empty(struct ishtp_cl *cl);
89struct ishtp_cl_rb *ishtp_cl_rx_get_rb(struct ishtp_cl *cl);89struct ishtp_cl_rb *ishtp_cl_rx_get_rb(struct ishtp_cl *cl);
90void *ishtp_get_client_data(struct ishtp_cl *cl);
91void ishtp_set_client_data(struct ishtp_cl *cl, void *data);
92struct ishtp_device *ishtp_get_ishtp_device(struct ishtp_cl *cl);
93void ishtp_set_tx_ring_size(struct ishtp_cl *cl, int size);
94void ishtp_set_rx_ring_size(struct ishtp_cl *cl, int size);
95void ishtp_set_connection_state(struct ishtp_cl *cl, int state);
96void ishtp_cl_set_fw_client_id(struct ishtp_cl *cl, int fw_client_id);
90 97
91#endif /* _INTEL_ISH_CLIENT_IF_H_ */98#endif /* _INTEL_ISH_CLIENT_IF_H_ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t