Commit e6197c82 authored by kernel test robot's avatar kernel test robot Committed by Wolfram Sang

i2c: npcm7xx: npcm_i2caddr[] can be static

Fixes: f5473692 ("i2c: npcm7xx: Add support for slave mode for Nuvoton")
Signed-off-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent cb301414
...@@ -124,7 +124,7 @@ enum i2c_addr { ...@@ -124,7 +124,7 @@ enum i2c_addr {
* use this array to get the address or each register. * use this array to get the address or each register.
*/ */
#define I2C_NUM_OWN_ADDR 10 #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_I2CADDR1, NPCM_I2CADDR2, NPCM_I2CADDR3, NPCM_I2CADDR4,
NPCM_I2CADDR5, NPCM_I2CADDR6, NPCM_I2CADDR7, NPCM_I2CADDR8, NPCM_I2CADDR5, NPCM_I2CADDR6, NPCM_I2CADDR7, NPCM_I2CADDR8,
NPCM_I2CADDR9, NPCM_I2CADDR10, NPCM_I2CADDR9, NPCM_I2CADDR10,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment