Skip to content

Commit c6446c2

Browse files
Colin Ian Kinggregkh
authored andcommitted
w1: ds2482: make module parameter extra_config static
The variable extra_config is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: warning: symbol 'extra_config' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ce7d8f8 commit c6446c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/w1/masters/ds2482.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ MODULE_PARM_DESC(active_pullup, "Active pullup (apply to all buses): " \
7171
#define DS2482_REG_CFG_APU 0x01 /* active pull-up */
7272

7373
/* extra configurations - e.g. 1WS */
74-
int extra_config;
74+
static int extra_config;
7575

7676
/**
7777
* Write and verify codes for the CHANNEL_SELECT command (DS2482-800 only).

0 commit comments

Comments
 (0)