Commit ee3ee51c authored by JimiChen's avatar JimiChen Committed by TreeHugger Robot
Browse files

lwis: use shared_i2c_set_state if module STMVL53L1 is present



This function is shared from stmvl53l3.ko in order to well handle
the case of shared i2c enabling and disabling by current hardware
design. And use build flasg CONFIG_INPUT_STMVL53L1 to construct
their dependency.

1. CONFIG_INPUT_STMVL53L1=n
There is no dependency between lwis driver and stmvl53l1 driver.

2. CONFIG_INPUT_STMVL53L1=y/m
There is a dependency between lwis and stmvl53l1 even though
they are all in seperate i2c bus because we muse consider the
case of sharing one i2c bus like now.

Bug: 188513021
Bug: 188737653
Test: camer CTS

Signed-off-by: default avatarJimiChen <jimichen@google.com>
Change-Id: I1339c1d796a8540c800550f822ec4cf56ae4054d
parent 4c624a17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment