]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
i2c: mux: pca954x: Add missing pca9546 definition to chip_desc
authorMike Looijmans <mike.looijmans@topic.nl>
Thu, 23 Mar 2017 09:00:36 +0000 (10:00 +0100)
committerPeter Rosin <peda@axentia.se>
Fri, 24 Mar 2017 11:22:18 +0000 (12:22 +0100)
The spec for the pca9546 was missing. This chip is the same as the pca9545
except that it lacks interrupt lines. While the i2c_device_id table mapped
the pca9546 to the pca9545 definition the compatible table did not.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-mux-pca954x.c

index 333a3918b6568164d4a7f99dab5d93e7525cbb49..ad31d21da3165f73ecc8f7beb1feef4fc186cbe5 100644 (file)
@@ -116,6 +116,10 @@ static const struct chip_desc chips[] = {
                .has_irq = 1,
                .muxtype = pca954x_isswi,
        },
+       [pca_9546] = {
+               .nchans = 4,
+               .muxtype = pca954x_isswi,
+       },
        [pca_9547] = {
                .nchans = 8,
                .enable = 0x8,
@@ -133,7 +137,7 @@ static const struct i2c_device_id pca954x_id[] = {
        { "pca9543", pca_9543 },
        { "pca9544", pca_9544 },
        { "pca9545", pca_9545 },
-       { "pca9546", pca_9545 },
+       { "pca9546", pca_9546 },
        { "pca9547", pca_9547 },
        { "pca9548", pca_9548 },
        { }