Skip to content

Commit 9ecedaf

Browse files
Tom Rixjwrdegoede
authored andcommitted
platform/x86: int3472/discrete: set variable skl_int3472_regulator_second_sensor storage-class-specifier to static
smatch reports drivers/platform/x86/intel/int3472/clk_and_regulator.c:263:28: warning: symbol 'skl_int3472_regulator_second_sensor' was not declared. Should it be static? This variable is only used in its defining file, so it should be static. Signed-off-by: Tom Rix <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 5b2a4a4 commit 9ecedaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/intel/int3472/clk_and_regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static_assert(ARRAY_SIZE(skl_int3472_regulator_map_supplies) ==
260260
* This DMI table contains the name of the second sensor. This is used to add
261261
* entries for the second sensor to the supply_map.
262262
*/
263-
const struct dmi_system_id skl_int3472_regulator_second_sensor[] = {
263+
static const struct dmi_system_id skl_int3472_regulator_second_sensor[] = {
264264
{
265265
/* Lenovo Miix 510-12IKB */
266266
.matches = {

0 commit comments

Comments
 (0)