Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: typec: cros-ec-ucsi: Mark cros_ucsi_ops static/const

This structure isn't used outside this file and can be marked const so
that it gets moved to read-only memory.

Cc: Pavan Holla <pholla@chromium.org>
Cc: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Cc: Łukasz Bartosik <ukaszb@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Łukasz Bartosik <ukaszb@chromium.org>
Link: https://lore.kernel.org/r/20250109220655.1677506-3-swboyd@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Stephen Boyd and committed by
Greg Kroah-Hartman
a181c8ef 8ec7cac6

+1 -1
+1 -1
drivers/usb/typec/ucsi/cros_ec_ucsi.c
··· 133 133 return ret; 134 134 } 135 135 136 - struct ucsi_operations cros_ucsi_ops = { 136 + static const struct ucsi_operations cros_ucsi_ops = { 137 137 .read_version = cros_ucsi_read_version, 138 138 .read_cci = cros_ucsi_read_cci, 139 139 .read_message_in = cros_ucsi_read_message_in,