lkml.org 
[lkml]   [2021]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] pinctrl: at91: Constify struct at91_pinctrl_mux_ops
On Wed, May 12, 2021 at 8:01 PM Rikard Falkeborn
<rikard.falkeborn@gmail.com> wrote:

> The at91_pinctrl_mux_ops struct is never modified by the driver. Make it
> const wherever it is possible to allow the compiler to put the static
> variables in read-only memory. Note that sam9x60_ops was already const,
> but the const was cast away when the return value of of_match_device() was
> cast to a pointer to a non-const struct at91_pinctrl_mux_ops.
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>

Patch applied.

Yours,
Linus Walleij

\
 
 \ /
  Last update: 2021-05-25 02:10    [W:0.038 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site