diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-01-10 10:33:06 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-10 12:56:57 +0000 |
commit | eb758de6a00f2c1f5694efc503b94d162db99734 (patch) | |
tree | 713aa1ab67940f56fafeba72e66cea2a5b3058d6 /arch/arm/mach-s3c24xx/dma-s3c2412.c | |
parent | b9bb09111a4f5dbf8a0bd7df77ec79d3fdf9e5d2 (diff) | |
download | blackbird-op-linux-eb758de6a00f2c1f5694efc503b94d162db99734.tar.gz blackbird-op-linux-eb758de6a00f2c1f5694efc503b94d162db99734.zip |
regulator: lp8788-buck: Silence build warning
This driver use id as array index, thus add bounder checking for id.
This patch fixes below build warning:
drivers/regulator/lp8788-buck.c: In function 'lp8788_buck_probe':
drivers/regulator/lp8788-buck.c:490:8: warning: array subscript is above array bounds [-Warray-bounds]
drivers/regulator/lp8788-buck.c:489:63: warning: array subscript is above array bounds [-Warray-bounds]
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/mach-s3c24xx/dma-s3c2412.c')
0 files changed, 0 insertions, 0 deletions