extcon: fsa9480: Fix Kconfig warning and build errors
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 26 Jun 2019 01:10:40 +0000 (18:10 -0700)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 26 Jun 2019 08:27:39 +0000 (17:27 +0900)
commit0937fbb7abeb165ef0ac6a56a3a6f041eca6dbde
treed461a24eb306c11208ca65cbebc7dabdb45ceba1
parentbad5b5e707a58db9a65d59f7706314012a8e3219
extcon: fsa9480: Fix Kconfig warning and build errors

Fix Kconfig dependency warning and subsequent build errors caused by
the Kconfig entry for EXTCON-FSA9480.  It should not select
REGMAP_I2C unless I2C is already set/enabled.

WARNING: unmet direct dependencies detected for REGMAP_I2C
  Depends on [n]: I2C [=n]
  Selected by [y]:
  - EXTCON_FSA9480 [=y] && EXTCON [=y] && INPUT [=y]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
[cw00.choi: adjust the patch title and remove the long warning messages]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/Kconfig