diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2016-11-08 14:28:03 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-01-16 07:27:52 +0100 |
commit | 98cc43ab6bc9574ec4dbc61acccfdcbbfa34d4c5 (patch) | |
tree | 044e735a994ac3464d1508f1e507bfcc4e52b693 /drivers/spi/spi-pic32-sqi.c | |
parent | s390/zcrypt: get rid of variable length arrays (diff) | |
download | linux-98cc43ab6bc9574ec4dbc61acccfdcbbfa34d4c5.tar.xz linux-98cc43ab6bc9574ec4dbc61acccfdcbbfa34d4c5.zip |
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>
Diffstat (limited to 'drivers/spi/spi-pic32-sqi.c')
0 files changed, 0 insertions, 0 deletions