Skip to content

Commit da31486

Browse files
Pei Xiaogregkh
authored andcommitted
usb: typec: ucsi: make yoga_c630_ucsi_ops be static
sparse warnings: drivers/usb/typec/ucsi/ucsi_yoga_c630.c:101:30: sparse: sparse: symbol 'yoga_c630_ucsi_ops' was not declared. Should it be static? Add static to fix sparse warnings. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Pei Xiao <[email protected]> Link: https://lore.kernel.org/r/cefe3bc20b2ddaee2a0924ba32243f035e92a025.1735289530.git.xiaopei01@kylinos.cn Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8a95c9e commit da31486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/ucsi/ucsi_yoga_c630.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static int yoga_c630_ucsi_async_control(struct ucsi *ucsi, u64 command)
7171
return yoga_c630_ec_ucsi_write(uec->ec, (u8*)&command);
7272
}
7373

74-
const struct ucsi_operations yoga_c630_ucsi_ops = {
74+
static const struct ucsi_operations yoga_c630_ucsi_ops = {
7575
.read_version = yoga_c630_ucsi_read_version,
7676
.read_cci = yoga_c630_ucsi_read_cci,
7777
.read_message_in = yoga_c630_ucsi_read_message_in,

0 commit comments

Comments
 (0)