leds: flash: Set variables mvflash_{3,4}ch_regs storage-class-specifier to static
authorTom Rix <trix@redhat.com>
Fri, 17 Mar 2023 19:13:41 +0000 (15:13 -0400)
committerLee Jones <lee@kernel.org>
Thu, 30 Mar 2023 12:58:24 +0000 (13:58 +0100)
commit22dc3789b737fe29d8f54f0d084047aede5550ad
treebada597f5c309cd2fae802843e65bfd1f618c2a9
parent560f2eb7d6a775e488832b724b25bde33ce71b9f
leds: flash: Set variables mvflash_{3,4}ch_regs storage-class-specifier to static

Smatch reports:

  drivers/leds/flash/leds-qcom-flash.c:103:18: warning:
    symbol 'mvflash_3ch_regs' was not declared. Should it be static?
  drivers/leds/flash/leds-qcom-flash.c:115:18: warning:
    symbol 'mvflash_4ch_regs' was not declared. Should it be static?

These variables are only used locally, so it should be static.

Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230317191341.1670660-1-trix@redhat.com
drivers/leds/flash/leds-qcom-flash.c