[PATCH] cros_ec: Convert dm_cros_ec_get_ops into an inline function and constify dm_cros_ec_ops

Simon Glass sjg at chromium.org
Sun Jun 14 14:43:24 CEST 2026


On Thu, 11 Jun 2026 at 19:59, Marek Vasut
<marek.vasut+renesas at mailbox.org> wrote:
>
> Convert dm_cros_ec_get_ops into an inline function to improve compiler
> code coverage, and constify struct dm_cros_ec_ops in a few places.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
> ---
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: u-boot at lists.denx.de
> ---
>  drivers/misc/cros_ec.c | 9 ++++-----
>  include/cros_ec.h      | 7 +++++--
>  2 files changed, 9 insertions(+), 7 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list