summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2019-04-09 09:57:42 +0300
committerHeiko Schocher <hs@denx.de>2019-04-11 16:21:33 +0300
commit5995cdb167a4e8d3049cc25ca37c13ab85a63ac0 (patch)
treecbcedd54cee2587e1252d619d1d8438efefa8879
parent4cdf4e0655823fbb0c937cab939e54a1527fa01e (diff)
downloadu-boot-5995cdb167a4e8d3049cc25ca37c13ab85a63ac0.tar.xz
i2c: muxes: pca954x: clarify enable field
The chip_desc.enable field is used only for muxes, not for switches. Document it and remove the unused values. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Reviewed-by: Heiko Schocher <hs@denx.de> Acked-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Heiko Schocher<hs@denx.de>
-rw-r--r--drivers/i2c/muxes/pca954x.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c
index bd4e9abe5f..5669753ce1 100644
--- a/drivers/i2c/muxes/pca954x.c
+++ b/drivers/i2c/muxes/pca954x.c
@@ -22,7 +22,7 @@ enum pca_type {
};
struct chip_desc {
- u8 enable;
+ u8 enable; /* Enable mask in ctl register (used for muxes only) */
enum muxtype {
pca954x_ismux = 0,
pca954x_isswi,
@@ -48,12 +48,10 @@ static const struct chip_desc chips[] = {
.width = 8,
},
[PCA9548] = {
- .enable = 0x8,
.muxtype = pca954x_isswi,
.width = 8,
},
[PCA9646] = {
- .enable = 0x0,
.muxtype = pca954x_isswi,
.width = 4,
},