mfd: ti_am335x_tscadc: Add a boolean to clarify the presence of a touchscreen
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 15 Oct 2021 08:14:52 +0000 (10:14 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 21 Oct 2021 08:23:50 +0000 (09:23 +0100)
commit2a4e333a2e9c99ddd27f0a05ef87aae6c3362f8a
tree53681177202ddb2dd4ecbd0e0347d1f5db4d5bea
parente40b5971416d1bc61a36cc6d607abe0e9fc5987c
mfd: ti_am335x_tscadc: Add a boolean to clarify the presence of a touchscreen

Just checking the number of wires will soon not be enough, add a boolean
to indicate the actual use or not of the touchscreen.

Certain checks only make sense when there is a touchscreen wired. Make
these checks explicitly depend on the presence of the touchscreen.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211015081506.933180-35-miquel.raynal@bootlin.com
drivers/mfd/ti_am335x_tscadc.c