[U-Boot] [PATCH] i2c: muxes: pca954x: look up width from chip_desc
Marek BehĂșn
marek.behun at nic.cz
Fri Sep 29 13:42:00 UTC 2017
On Fri, 29 Sep 2017 10:53:36 +1300
Chris Packham <judge.packham at gmail.com> wrote:
> struct pca954x_priv {
> @@ -39,14 +40,17 @@ static const struct chip_desc chips[] = {
> [PCA9544] = {
> .enable = 0x4,
> .muxtype = pca954x_ismux,
> + .width = 4,
> },
> [PCA9547] = {
> .enable = 0x8,
> .muxtype = pca954x_ismux,
> + .width = 8,
> },
> [PCA9548] = {
> .enable = 0x8,
> .muxtype = pca954x_isswi,
> + .width = 8,
> },
> };
Hmm, looking at this now, isn't one of the enable or width fields
redundant? They both have same values in all entries.
Marek
More information about the U-Boot
mailing list