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:
committed by
Heiko Schocher
parent
4cdf4e0655
commit
5995cdb167
@@ -22,7 +22,7 @@ enum pca_type {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct chip_desc {
|
struct chip_desc {
|
||||||
u8 enable;
|
u8 enable; /* Enable mask in ctl register (used for muxes only) */
|
||||||
enum muxtype {
|
enum muxtype {
|
||||||
pca954x_ismux = 0,
|
pca954x_ismux = 0,
|
||||||
pca954x_isswi,
|
pca954x_isswi,
|
||||||
@@ -48,12 +48,10 @@ static const struct chip_desc chips[] = {
|
|||||||
.width = 8,
|
.width = 8,
|
||||||
},
|
},
|
||||||
[PCA9548] = {
|
[PCA9548] = {
|
||||||
.enable = 0x8,
|
|
||||||
.muxtype = pca954x_isswi,
|
.muxtype = pca954x_isswi,
|
||||||
.width = 8,
|
.width = 8,
|
||||||
},
|
},
|
||||||
[PCA9646] = {
|
[PCA9646] = {
|
||||||
.enable = 0x0,
|
|
||||||
.muxtype = pca954x_isswi,
|
.muxtype = pca954x_isswi,
|
||||||
.width = 4,
|
.width = 4,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user