diff options
author | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2019-01-16 10:31:58 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-01-21 14:05:42 +0100 |
commit | 5c4fee63c5ed8133e5a6011787a614c7dbc80c82 (patch) | |
tree | 824c10d6112cfb2994b91a48e13140713139c08f /drivers/media/dvb-frontends/ves1820.h | |
parent | gpio: pca953x: reduce indentation level in pca953x_irq_setup() (diff) | |
download | linux-5c4fee63c5ed8133e5a6011787a614c7dbc80c82.tar.xz linux-5c4fee63c5ed8133e5a6011787a614c7dbc80c82.zip |
gpio: pca953x: use a per instance irq_chip structure
When a system has two PCA953x GPIO expanders, the kernel complains with:
gpio gpiochip2: (0-0021): detected irqchip that is shared with multiple gpiochips: please fix the driver.
Indeed, there is a single instance of "struct irq_chip" that gets
re-used for both PCA953x instance. This commit moves the "struct
irq_chip" to be part of the "struct pca953x_chip", so that we have one
"struct irq_chip" per PCA953X instance.
As part of this, the name of the irq_chip is also made different on a
per-instance basis, now using the dev_name() of the I2C device. This
changes what is visible in /proc/interrupts.
Before:
47: 0 0 pca953x 10 Edge e0100000.sdhci cd
48: 0 0 pca953x 6 Edge e0101000.sdhci cd
After:
47: 0 0 0-0020 10 Edge e0100000.sdhci cd
48: 2 0 0-0020 6 Edge e0101000.sdhci cd
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/media/dvb-frontends/ves1820.h')
0 files changed, 0 insertions, 0 deletions