[PATCH 4/9] drm/sun4i: tcon_top: Use clock name index macros

Chen-Yu Tsai wens at csie.org
Fri Jun 14 03:24:29 UTC 2019


On Fri, Jun 14, 2019 at 2:54 AM Jagan Teki <jagan at amarulasolutions.com> wrote:
>
> TCON TOP mux blocks in R40 are registering clock using
> tcon top clock index numbers.
>
> Right now the code is using, real numbers start with 0, but
> we have proper macros that defined these name index numbers.
>
> Use the existing macros, instead of real numbers for more
> code readability.
>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>

Reviewed-by: Chen-Yu Tsai <wens at csie.org>

However, you might want to rename the clock first, then switch to
using the index macros?


More information about the dri-devel mailing list