Re: [PATCH] interconnect: qcom: osm-l3: Mark more structures const

From: Evan Green
Date: Mon Sep 14 2020 - 17:23:00 EST


On Mon, Sep 14, 2020 at 11:21 AM Stephen Boyd <swboyd@xxxxxxxxxxxx> wrote:
>
> These structures aren't modified at runtime. Mark them const so they get
> moved to read-only memory. We have to cast away const in one place when
> we store into the data member of struct icc_node. This is paired with a
> re-const of the data member when it is extracted in qcom_icc_set().
>
> Cc: Sibi Sankar <sibis@xxxxxxxxxxxxxx>
> Cc: Evan Green <evgreen@xxxxxxxxxxxx>
> Signed-off-by: Stephen Boyd <swboyd@xxxxxxxxxxxx>

Reviewed-by: Evan Green <evgreen@xxxxxxxxxxxx>