]> Git Repo - linux.git/commitdiff
i2c: npcm7xx: npcm_i2caddr[] can be static
authorkernel test robot <[email protected]>
Thu, 11 Jun 2020 02:50:35 +0000 (10:50 +0800)
committerWolfram Sang <[email protected]>
Thu, 11 Jun 2020 10:30:47 +0000 (12:30 +0200)
Fixes: f54736925a4f ("i2c: npcm7xx: Add support for slave mode for Nuvoton")
Signed-off-by: kernel test robot <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-npcm7xx.c

index 3528d30ea65029f2216766175e8a81257754f6de..75f07138a6fa25d19463c659dc3c7e886daf4dee 100644 (file)
@@ -124,7 +124,7 @@ enum i2c_addr {
  * use this array to get the address or each register.
  */
 #define I2C_NUM_OWN_ADDR 10
-const int npcm_i2caddr[I2C_NUM_OWN_ADDR] = {
+static const int npcm_i2caddr[I2C_NUM_OWN_ADDR] = {
        NPCM_I2CADDR1, NPCM_I2CADDR2, NPCM_I2CADDR3, NPCM_I2CADDR4,
        NPCM_I2CADDR5, NPCM_I2CADDR6, NPCM_I2CADDR7, NPCM_I2CADDR8,
        NPCM_I2CADDR9, NPCM_I2CADDR10,
This page took 0.063026 seconds and 4 git commands to generate.