Sebastian Ott 98cc43ab6b s390/cio: clarify cssid usage
Currently the cssid in various structures is used as the id of
the respective channel subsystem. Sometimes however we call the
index in the channel_subsystems array cssid. In some places the
id is even used as the index.

Provide a new define MAX_CSS_IDX and use it where appropriate.
In addition to that provide a dummy function to find a channel
subsystem by its id and a macro to iterate over the channel
subsystems.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-01-16 07:27:52 +01:00
..
2017-01-16 07:27:52 +01:00
2017-01-16 07:27:52 +01:00
2016-03-07 13:12:04 +01:00
2017-01-16 07:27:52 +01:00
2017-01-16 07:27:52 +01:00
2015-08-07 09:57:01 +02:00
2012-09-26 15:44:57 +02:00
2015-03-25 11:49:33 +01:00
2015-03-25 11:49:33 +01:00