mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
coresight: Reuse platform data structure for connection tracking
The platform specific information describes the connections and the ports of a given coresigh device. This information is also recorded in the coresight device as separate fields. Let us reuse the original platform description to streamline the handling of the data. Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d2998dc1f9
commit
b77e3ed038
3 changed files with 27 additions and 31 deletions
|
@ -140,9 +140,7 @@ struct coresight_connection {
|
|||
|
||||
/**
|
||||
* struct coresight_device - representation of a device as used by the framework
|
||||
* @conns: array of coresight_connections associated to this component.
|
||||
* @nr_inport: number of input port associated to this component.
|
||||
* @nr_outport: number of output port associated to this component.
|
||||
* @pdata: Platform data with device connections associated to this device.
|
||||
* @type: as defined by @coresight_dev_type.
|
||||
* @subtype: as defined by @coresight_dev_subtype.
|
||||
* @ops: generic operations for this component, as defined
|
||||
|
@ -157,9 +155,7 @@ struct coresight_connection {
|
|||
* @ea: Device attribute for sink representation under PMU directory.
|
||||
*/
|
||||
struct coresight_device {
|
||||
struct coresight_connection *conns;
|
||||
int nr_inport;
|
||||
int nr_outport;
|
||||
struct coresight_platform_data *pdata;
|
||||
enum coresight_dev_type type;
|
||||
union coresight_dev_subtype subtype;
|
||||
const struct coresight_ops *ops;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue