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>
This commit is contained in:
Luca Ceresoli 2019-04-09 08:57:42 +02:00 committed by Heiko Schocher
parent 4cdf4e0655
commit 5995cdb167

View File

@ -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,
},