Skip to content

Commit a181c8e

Browse files
bebarinogregkh
authored andcommitted
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 <[email protected]> Cc: Abhishek Pandit-Subedi <[email protected]> Cc: Łukasz Bartosik <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Reviewed-by: Łukasz Bartosik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8ec7cac commit a181c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/ucsi/cros_ec_ucsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static int cros_ucsi_sync_control(struct ucsi *ucsi, u64 cmd)
133133
return ret;
134134
}
135135

136-
struct ucsi_operations cros_ucsi_ops = {
136+
static const struct ucsi_operations cros_ucsi_ops = {
137137
.read_version = cros_ucsi_read_version,
138138
.read_cci = cros_ucsi_read_cci,
139139
.read_message_in = cros_ucsi_read_message_in,

0 commit comments

Comments
 (0)