i2c: npcm7xx: npcm_i2caddr[] can be static

Fixes: f54736925a ("i2c: npcm7xx: Add support for slave mode for Nuvoton")
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
This commit is contained in:
kernel test robot 2020-06-11 10:50:35 +08:00 committed by Wolfram Sang
parent cb30141476
commit e6197c8290
1 changed files with 1 additions and 1 deletions

View 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,