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:
parent
4cdf4e0655
commit
5995cdb167
1 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue