[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zdy5lDOBrQ9XFCpm@smile.fi.intel.com>
Date: Mon, 26 Feb 2024 18:17:24 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Robin van der Gracht <robin@...tonic.nl>,
Paul Burton <paulburton@...nel.org>
Subject: Re: [PATCH v3 9/9] auxdisplay: Add driver for MAX695x 7-segment LED
controllers
On Mon, Feb 26, 2024 at 05:01:46PM +0100, Geert Uytterhoeven wrote:
> On Mon, Feb 19, 2024 at 6:03 PM Andy Shevchenko
> <andriy.shevchenko@...ux.intel.com> wrote:
> > Add initial driver for the MAX6958 and MAX6959 7-segment LED
> > controllers.
> LGTM, so
> Reviewed-by: Geert Uytterhoeven <geert@...ux-m68k.org>
Thanks, but see below.
..
> > + u8 buf[4];
> > +
> > + /* Map segments according to datasheet */
> > + buf[0] = bitrev8(map_to_seg7(&map->map.seg7, *s++)) >> 1;
> > + buf[1] = bitrev8(map_to_seg7(&map->map.seg7, *s++)) >> 1;
> > + buf[2] = bitrev8(map_to_seg7(&map->map.seg7, *s++)) >> 1;
> > + buf[3] = bitrev8(map_to_seg7(&map->map.seg7, *s++)) >> 1;
>
> for (unsigned int i = 0; i < linedisp->num_chars; i++) { ... }
>
> > +
> > + regmap_bulk_write(priv->regmap, REG_DIGIT(0), buf, ARRAY_SIZE(buf));
>
> linedisp->num_chars
Maybe, but then we probably want to synchronize the 4 there and here as we
can't have VLA on stack.
> > +}
..
> > + ret = linedisp_register(&priv->linedisp, dev, 4, &max6959_linedisp_ops);
>
> + device_property_read_u32(dev, "display-width-chars", ...) handling.
Not sure it should be part of this series.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists