summaryrefslogtreecommitdiff
path: root/include/misc/cxl.h
diff options
context:
space:
mode:
authorMartyn Welch <martyn.welch@collabora.com>2022-09-14 18:15:56 +0300
committerBartosz Golaszewski <brgl@bgdev.pl>2022-09-15 11:08:44 +0300
commit5faf9801d4be7a079062b2ece493ae6e9e38c828 (patch)
tree5ed60bcc938a048386162a636b056b47124bd27f /include/misc/cxl.h
parentb122624ab91705d30354f0397b1eea931c6b1933 (diff)
downloadlinux-5faf9801d4be7a079062b2ece493ae6e9e38c828.tar.xz
gpio: pca953x: Swap if statements to save later complexity
A later patch in the series adds support for a further chip type that shares some similarity with the PCA953X_TYPE. In order to keep the logic simple, swap over the if and else portions where checks are made against PCA953X_TYPE and instead check for PCA957X_TYPE. Signed-off-by: Martyn Welch <martyn.welch@collabora.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'include/misc/cxl.h')
0 files changed, 0 insertions, 0 deletions