]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: select CONFIG_REGMAP while REGMAP_SCCB is set
authorYueHaibing <yuehaibing@huawei.com>
Thu, 4 Jul 2019 09:35:53 +0000 (17:35 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jul 2019 12:18:48 +0000 (13:18 +0100)
commitfb0f246006d670676224aecc1fc831ee7f1c22ff
tree16f656ab04384e9227b56e4ac5c704b1384905fc
parent07146533d7fcf3359305b8cfe5e74e1ac045587d
regmap: select CONFIG_REGMAP while REGMAP_SCCB is set

REGMAP_SCCB is selected by ov772x and ov9650 drivers,
but CONFIG_REGMAP may not, so building will fails:

rivers/media/i2c/ov772x.c: In function ov772x_probe:
drivers/media/i2c/ov772x.c:1360:22: error: variable ov772x_regmap_config has initializer but incomplete type
  static const struct regmap_config ov772x_regmap_config = {
                      ^~~~~~~~~~~~~
drivers/media/i2c/ov772x.c:1361:4: error: const struct regmap_config has no member named reg_bits

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 696d63bc4c77 ("media: ov772x: use SCCB regmap")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190704093553.49904-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/Kconfig