usb: typec: tps6598x: Fix build error without CONFIG_REGMAP_I2C
authorYueHaibing <yuehaibing@huawei.com>
Tue, 3 Sep 2019 12:10:26 +0000 (20:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:51:09 +0000 (14:51 +0100)
commit2404a2e35aaf74add564abfdb09273bbffae8ace
treebaf5c3c178061eb845dd191cb9c4797ed3cc9a22
parentd5eda6cad06e0a9736d2257df718486f27e7fd05
usb: typec: tps6598x: Fix build error without CONFIG_REGMAP_I2C

[ Upstream commit 35af2445dc306403254a181507b390ec9eb725d5 ]

If CONFIG_REGMAP_I2C is not set, building fails:

drivers/usb/typec/tps6598x.o: In function `tps6598x_probe':
tps6598x.c:(.text+0x5f0): undefined reference to `__devm_regmap_init_i2c'

Select REGMAP_I2C to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 0a4c005bd171 ("usb: typec: driver for TI TPS6598x USB Power Delivery controllers")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20190903121026.22148-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/typec/Kconfig